Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit f31b02e

Browse files
committed
Merge pull request #30 from symfony-cmf/updated_for_RC4
Fixed for RC4
2 parents 3ade248 + 9478d79 commit f31b02e

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

Command/RefreshCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function execute(InputInterface $input, OutputInterface $output)
7171
$output->writeln(sprintf('<info>Processing class: </info> %s', $classFqn));
7272

7373
$qb = $dm->createQueryBuilder();
74-
$qb->from($classFqn);
74+
$qb->from()->document($classFqn, 'a');
7575
$q = $qb->getQuery();
7676
$result = $q->getResult();
7777

Tests/Functional/Command/RefreshCommandTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ protected function createBlog($withPosts = false)
2424
if ($withPosts) {
2525
$post = new Post;
2626
$post->title = 'This is a post title';
27+
$post->body = 'Test Body';
2728
$post->blog = $blog;
2829
$this->getDm()->persist($post);
2930
}

Tests/Functional/EventListener/AutoRouteListenerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ protected function createBlog($withPosts = false)
1919
if ($withPosts) {
2020
$post = new Post;
2121
$post->title = 'This is a post title';
22+
$post->body = 'Test Body';
2223
$post->blog = $blog;
2324
$this->getDm()->persist($post);
2425
}

Tests/Resources/app/config/routingautoroute.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ cmf_routing:
99
demo_alias: test.controller:aliasAction
1010
controllers_by_class:
1111
Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute: cmf_routing.redirect_controller:redirectAction
12-
templates_by_class:
13-
Symfony\Cmf\Component\Testing\Document\Content: TestBundle:Content:index.html.twig
1412
persistence:
1513
phpcr:
1614
enabled: true

0 commit comments

Comments
 (0)