diff --git a/Command/RefreshCommand.php b/Command/RefreshCommand.php index 3aaf667..bc7a07d 100644 --- a/Command/RefreshCommand.php +++ b/Command/RefreshCommand.php @@ -71,7 +71,7 @@ public function execute(InputInterface $input, OutputInterface $output) $output->writeln(sprintf('Processing class: %s', $classFqn)); $qb = $dm->createQueryBuilder(); - $qb->from($classFqn); + $qb->from()->document($classFqn, 'a'); $q = $qb->getQuery(); $result = $q->getResult(); diff --git a/Tests/Functional/Command/RefreshCommandTest.php b/Tests/Functional/Command/RefreshCommandTest.php index b1ad391..16d5af9 100644 --- a/Tests/Functional/Command/RefreshCommandTest.php +++ b/Tests/Functional/Command/RefreshCommandTest.php @@ -24,6 +24,7 @@ protected function createBlog($withPosts = false) if ($withPosts) { $post = new Post; $post->title = 'This is a post title'; + $post->body = 'Test Body'; $post->blog = $blog; $this->getDm()->persist($post); } diff --git a/Tests/Functional/EventListener/AutoRouteListenerTest.php b/Tests/Functional/EventListener/AutoRouteListenerTest.php index 20b28ed..bbda0b3 100644 --- a/Tests/Functional/EventListener/AutoRouteListenerTest.php +++ b/Tests/Functional/EventListener/AutoRouteListenerTest.php @@ -19,6 +19,7 @@ protected function createBlog($withPosts = false) if ($withPosts) { $post = new Post; $post->title = 'This is a post title'; + $post->body = 'Test Body'; $post->blog = $blog; $this->getDm()->persist($post); } diff --git a/Tests/Resources/app/config/routingautoroute.yml b/Tests/Resources/app/config/routingautoroute.yml index be71ec7..45eb682 100644 --- a/Tests/Resources/app/config/routingautoroute.yml +++ b/Tests/Resources/app/config/routingautoroute.yml @@ -9,8 +9,6 @@ cmf_routing: demo_alias: test.controller:aliasAction controllers_by_class: Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute: cmf_routing.redirect_controller:redirectAction - templates_by_class: - Symfony\Cmf\Component\Testing\Document\Content: TestBundle:Content:index.html.twig persistence: phpcr: enabled: true