protected function checkRootNode()
    {
        $id = (int)Application::getRequest()->get('id');

        $repository = $this->getEntityManager()->getRepository($this->entityName);
        /** @var $node Category */
        if ($node = $repository->find($id)) {
            return $node->getLevel() > 1;
        }

        return false;
    }
protected function checkRootNode()
    {
        $id = (int)Application::getRequest()->get('id');

        $repository = $this->getEntityManager()->getRepository($this->entityName);
        /** @var $node Category */
        if ($node = $repository->find($id)) {
            return $node->getLevel() > 1;
        }

        return false;
    }
protected function checkRootNode ( ) { $ id = ( int ) Application :: getRequest ( ) -> get ( 'id' ) ; $ repository = $ this -> getEntityManager ( ) -> getRepository ( $ this -> entityName ) ; /** @var $node Category */ if ( $ node = $ repository -> find ( $ id ) ) { return $ node -> getLevel ( ) > 1 ; } return false ; }
If node not root then method return true
@return bool
If node not root then method return true