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

Commit d3f9c88

Browse files
committed
adjust to phpcr-odm changed defaults
1 parent 9fb8305 commit d3f9c88

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Tests/Resources/DataFixtures/PHPCR/LoadMenuData.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Doctrine\Common\DataFixtures\FixtureInterface;
1616
use Doctrine\Common\Persistence\ObjectManager;
1717
use Doctrine\Common\DataFixtures\DependentFixtureInterface;
18+
use Doctrine\ODM\PHPCR\DocumentManager;
1819
use Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\MenuNode;
1920
use Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\Menu;
2021
use Symfony\Cmf\Bundle\MenuBundle\Tests\Resources\Document\Content;
@@ -26,6 +27,8 @@
2627
class LoadMenuData implements FixtureInterface, DependentFixtureInterface
2728
{
2829
protected $root;
30+
protected $menuRoot;
31+
protected $routeRoot;
2932

3033
public function getDependencies()
3134
{
@@ -49,7 +52,7 @@ public function load(ObjectManager $manager)
4952
$manager->flush();
5053
}
5154

52-
protected function loadMainMenu($manager)
55+
protected function loadMainMenu(DocumentManager $manager)
5356
{
5457
$content = new Content;
5558
$content->setTitle('Menu Item Content 1');
@@ -129,7 +132,7 @@ protected function loadMainMenu($manager)
129132
$manager->persist($content);
130133
}
131134

132-
protected function loadSideMenu($manager)
135+
protected function loadSideMenu(DocumentManager $manager)
133136
{
134137
// test content
135138
$content = new Content;

Tests/Resources/Document/Content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
class Content implements MenuNodeReferrersInterface, RouteReferrersReadInterface
2828
{
2929
/**
30-
* @PHPCRODM\Id()
30+
* @PHPCRODM\Id(strategy="assigned")
3131
*/
3232
protected $id;
3333

0 commit comments

Comments
 (0)