public function resolve(NodeRouteInterface $route)
    {

        foreach($this->classes as $class) {
            $qb = $this->manager->createQueryBuilder()
                ->select('n')
                ->from($class, 'n')
                ->join('n.routes', 'r')
                ->where('r.id = :route')
                ->setParameter('route', $route->getId());

            $node = $qb->getQuery()->getResult();

            if($node) return $node[0];
        }

        return null;
    }
public function resolve(NodeRouteInterface $route)
    {

        foreach($this->classes as $class) {
            $qb = $this->manager->createQueryBuilder()
                ->select('n')
                ->from($class, 'n')
                ->join('n.routes', 'r')
                ->where('r.id = :route')
                ->setParameter('route', $route->getId());

            $node = $qb->getQuery()->getResult();

            if($node) return $node[0];
        }

        return null;
    }
public function resolve ( NodeRouteInterface $ route ) { foreach ( $ this -> classes as $ class ) { $ qb = $ this -> manager -> createQueryBuilder ( ) -> select ( 'n' ) -> from ( $ class , 'n' ) -> join ( 'n.routes' , 'r' ) -> where ( 'r.id = :route' ) -> setParameter ( 'route' , $ route -> getId ( ) ) ; $ node = $ qb -> getQuery ( ) -> getResult ( ) ; if ( $ node ) return $ node [ 0 ] ; } return null ; }
loads the Node by the given NodeRouteInterface
@param NodeRouteInterface $route
@return mixed|null
loads the Node by the given NodeRouteInterface