mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-02-13 08:48:42 +00:00
fix bugs
This commit is contained in:
parent
a1e9ca2c92
commit
ff47ff2d01
|
|
@ -101,7 +101,7 @@ final class WikiCategoryMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Get by parent.
|
* Get by parent.
|
||||||
*
|
*
|
||||||
* @param int $value Parent value id
|
* @param null|int $value Parent value id
|
||||||
* @param int $app App
|
* @param int $app App
|
||||||
* @param int $depth Relation depth
|
* @param int $depth Relation depth
|
||||||
*
|
*
|
||||||
|
|
@ -109,7 +109,7 @@ final class WikiCategoryMapper extends DataMapperAbstract
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function getByParentAndApp(int $value, int $app = 1, int $depth = 3) : array
|
public static function getByParentAndApp(int $value = null, int $app = 1, int $depth = 3) : array
|
||||||
{
|
{
|
||||||
$query = self::getQuery();
|
$query = self::getQuery();
|
||||||
$query->where(static::$table . '_d' . $depth . '.' . static::$parent, '=', $value)
|
$query->where(static::$table . '_d' . $depth . '.' . static::$parent, '=', $value)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user