private function getPageByUid($uid)
    {
        if (null === $page = $this->getApplication()->getEntityManager()->find('BackBee\NestedNode\Page', $uid)) {
            throw new NotFoundHttpException("Unable to find page with uid `$uid`");
        }

        return $page;
    }
private function getPageByUid($uid)
    {
        if (null === $page = $this->getApplication()->getEntityManager()->find('BackBee\NestedNode\Page', $uid)) {
            throw new NotFoundHttpException("Unable to find page with uid `$uid`");
        }

        return $page;
    }
private function getPageByUid ( $ uid ) { if ( null === $ page = $ this -> getApplication ( ) -> getEntityManager ( ) -> find ( 'BackBee\NestedNode\Page' , $ uid ) ) { throw new NotFoundHttpException ( "Unable to find page with uid `$uid`" ) ; } return $ page ; }
Retrieves page entity with provided uid.

@param string $uid

@return Page

@throws NotFoundHttpException raised if page not found with provided uid
Retrieves page entity with provided uid .