This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 15
15
use Doctrine \Common \DataFixtures \FixtureInterface ;
16
16
use Doctrine \Common \Persistence \ObjectManager ;
17
17
use Doctrine \Common \DataFixtures \DependentFixtureInterface ;
18
+ use Doctrine \ODM \PHPCR \DocumentManager ;
18
19
use Symfony \Cmf \Bundle \MenuBundle \Doctrine \Phpcr \MenuNode ;
19
20
use Symfony \Cmf \Bundle \MenuBundle \Doctrine \Phpcr \Menu ;
20
21
use Symfony \Cmf \Bundle \MenuBundle \Tests \Resources \Document \Content ;
26
27
class LoadMenuData implements FixtureInterface, DependentFixtureInterface
27
28
{
28
29
protected $ root ;
30
+ protected $ menuRoot ;
31
+ protected $ routeRoot ;
29
32
30
33
public function getDependencies ()
31
34
{
@@ -49,7 +52,7 @@ public function load(ObjectManager $manager)
49
52
$ manager ->flush ();
50
53
}
51
54
52
- protected function loadMainMenu ($ manager )
55
+ protected function loadMainMenu (DocumentManager $ manager )
53
56
{
54
57
$ content = new Content ;
55
58
$ content ->setTitle ('Menu Item Content 1 ' );
@@ -129,7 +132,7 @@ protected function loadMainMenu($manager)
129
132
$ manager ->persist ($ content );
130
133
}
131
134
132
- protected function loadSideMenu ($ manager )
135
+ protected function loadSideMenu (DocumentManager $ manager )
133
136
{
134
137
// test content
135
138
$ content = new Content ;
Original file line number Diff line number Diff line change 27
27
class Content implements MenuNodeReferrersInterface, RouteReferrersReadInterface
28
28
{
29
29
/**
30
- * @PHPCRODM\Id()
30
+ * @PHPCRODM\Id(strategy="assigned" )
31
31
*/
32
32
protected $ id ;
33
33
You can’t perform that action at this time.
0 commit comments