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;
    }