public function childrenOf(ChildCategory $category)
    {
        return $this
            ->descendantsOf($category)
            ->addUsingAlias(ChildCategory::LEVEL_COL, $category->getLevel() + 1, Criteria::EQUAL);
    }
public function childrenOf(ChildCategory $category)
    {
        return $this
            ->descendantsOf($category)
            ->addUsingAlias(ChildCategory::LEVEL_COL, $category->getLevel() + 1, Criteria::EQUAL);
    }
public function childrenOf ( ChildCategory $ category ) { return $ this -> descendantsOf ( $ category ) -> addUsingAlias ( ChildCategory :: LEVEL_COL , $ category -> getLevel ( ) + 1 , Criteria :: EQUAL ) ; }
Filter the query to restrict the result to children of an object

@param     ChildCategory $category The object to use for child search

@return    $this|ChildCategoryQuery The current query, for fluid interface
Filter the query to restrict the result to children of an object