public function getDescendants(Criteria $criteria = null, ConnectionInterface $con = null)
    {
        if ($this->isLeaf()) {
            return array();
        } else {
            return ChildCategoryQuery::create(null, $criteria)
                ->descendantsOf($this)
                ->orderByBranch()
                ->find($con);
        }
    }
public function getDescendants(Criteria $criteria = null, ConnectionInterface $con = null)
    {
        if ($this->isLeaf()) {
            return array();
        } else {
            return ChildCategoryQuery::create(null, $criteria)
                ->descendantsOf($this)
                ->orderByBranch()
                ->find($con);
        }
    }
public function getDescendants ( Criteria $ criteria = null , ConnectionInterface $ con = null ) { if ( $ this -> isLeaf ( ) ) { return array ( ) ; } else { return ChildCategoryQuery :: create ( null , $ criteria ) -> descendantsOf ( $ this ) -> orderByBranch ( ) -> find ( $ con ) ; } }
Gets descendants for the given node

@param      Criteria $criteria Criteria to filter results.
@param      ConnectionInterface $con Connection to use.
@return     ObjectCollection|ChildCategory[] List of ChildCategory objects
Gets descendants for the given node