return $categories;
} /**
* @param int $id
*
* @return int
*/
public function getChildrenCountList($id) { $builder =
$this->
getCategoriesByParentBuilder($id);
$builder->
select('COUNT(categories) as categoriesCount'
);
return (int) $builder->
getQuery()->
getSingleScalarResult();
} /**
* @param int $id
*
* @return array
*/
public function getFullChildrenList($id) {