mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-01-11 09:28:40 +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.
|
||||
*
|
||||
* @param int $value Parent value id
|
||||
* @param null|int $value Parent value id
|
||||
* @param int $app App
|
||||
* @param int $depth Relation depth
|
||||
*
|
||||
|
|
@ -109,7 +109,7 @@ final class WikiCategoryMapper extends DataMapperAbstract
|
|||
*
|
||||
* @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->where(static::$table . '_d' . $depth . '.' . static::$parent, '=', $value)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user