public function getFirstChild(Criteria $criteria = null, ConnectionInterface $con = null)
    {
        if ($this->isLeaf()) {
            return null;
        } else {
            return ChildCategoryQuery::create(null, $criteria)
                ->childrenOf($this)
                ->orderByBranch()
                ->findOne($con);
        }
    }
public function getFirstChild(Criteria $criteria = null, ConnectionInterface $con = null)
    {
        if ($this->isLeaf()) {
            return null;
        } else {
            return ChildCategoryQuery::create(null, $criteria)
                ->childrenOf($this)
                ->orderByBranch()
                ->findOne($con);
        }
    }
public function getFirstChild ( Criteria $ criteria = null , ConnectionInterface $ con = null ) { if ( $ this -> isLeaf ( ) ) { return null ; } else { return ChildCategoryQuery :: create ( null , $ criteria ) -> childrenOf ( $ this ) -> orderByBranch ( ) -> findOne ( $ con ) ; } }
Gets the first child of the given node

@param      Criteria $criteria Criteria to filter results.
@param      ConnectionInterface $con Connection to use.
@return     ChildCategory|null First child or null if this is a leaf
Gets the first child of the given node