public function getSiblings($includeNode = false, Criteria $criteria = null, ConnectionInterface $con = null)
    {
        if ($this->isRoot()) {
            return array();
        } else {
            $query = ChildCategoryQuery::create(null, $criteria)
                ->childrenOf($this->getParent($con))
                ->orderByBranch();
            if (!$includeNode) {
                $query->prune($this);
            }

            return $query->find($con);
        }
    }
public function getSiblings($includeNode = false, Criteria $criteria = null, ConnectionInterface $con = null)
    {
        if ($this->isRoot()) {
            return array();
        } else {
            $query = ChildCategoryQuery::create(null, $criteria)
                ->childrenOf($this->getParent($con))
                ->orderByBranch();
            if (!$includeNode) {
                $query->prune($this);
            }

            return $query->find($con);
        }
    }
public function getSiblings ( $ includeNode = false , Criteria $ criteria = null , ConnectionInterface $ con = null ) { if ( $ this -> isRoot ( ) ) { return array ( ) ; } else { $ query = ChildCategoryQuery :: create ( null , $ criteria ) -> childrenOf ( $ this -> getParent ( $ con ) ) -> orderByBranch ( ) ; if ( ! $ includeNode ) { $ query -> prune ( $ this ) ; } return $ query -> find ( $ con ) ; } }
Gets the siblings of the given node

@param boolean             $includeNode Whether to include the current node or not
@param Criteria            $criteria Criteria to filter results.
@param ConnectionInterface $con Connection to use.

@return ObjectCollection|ChildCategory[] List of ChildCategory objects
Gets the siblings of the given node