@@ -59,7 +59,8 @@ public function testHasRootEntityWithCompositeIdentifier()
59
59
$ queryBuilder ->getRootEntities ()->willReturn (['Dummy ' ]);
60
60
$ queryBuilder ->getRootAliases ()->willReturn (['d ' ]);
61
61
$ classMetadata = new ClassMetadata ('Dummy ' );
62
- $ classMetadata ->containsForeignIdentifier = true ;
62
+ $ classMetadata ->isIdentifierComposite = true ;
63
+ $ classMetadata ->containsForeignIdentifier = false ;
63
64
$ objectManager = $ this ->prophesize (ObjectManager::class);
64
65
$ objectManager ->getClassMetadata ('Dummy ' )->willReturn ($ classMetadata );
65
66
$ managerRegistry = $ this ->prophesize (ManagerRegistry::class);
@@ -73,7 +74,8 @@ public function testHasRootEntityWithNoCompositeIdentifier()
73
74
$ queryBuilder ->getRootEntities ()->willReturn (['Dummy ' ]);
74
75
$ queryBuilder ->getRootAliases ()->willReturn (['d ' ]);
75
76
$ classMetadata = new ClassMetadata ('Dummy ' );
76
- $ classMetadata ->containsForeignIdentifier = false ;
77
+ $ classMetadata ->isIdentifierComposite = false ;
78
+ $ classMetadata ->containsForeignIdentifier = true ;
77
79
$ objectManager = $ this ->prophesize (ObjectManager::class);
78
80
$ objectManager ->getClassMetadata ('Dummy ' )->willReturn ($ classMetadata );
79
81
$ managerRegistry = $ this ->prophesize (ManagerRegistry::class);
@@ -88,6 +90,8 @@ public function testHasRootEntityWithForeignKeyIdentifier()
88
90
$ queryBuilder ->getRootAliases ()->willReturn (['d ' ]);
89
91
$ classMetadata = new ClassMetadata ('Dummy ' );
90
92
$ classMetadata ->setIdentifier (['id ' , 'name ' ]);
93
+ $ classMetadata ->isIdentifierComposite = false ;
94
+ $ classMetadata ->containsForeignIdentifier = true ;
91
95
$ objectManager = $ this ->prophesize (ObjectManager::class);
92
96
$ objectManager ->getClassMetadata ('Dummy ' )->willReturn ($ classMetadata );
93
97
$ managerRegistry = $ this ->prophesize (ManagerRegistry::class);
@@ -101,6 +105,8 @@ public function testHasRootEntityWithNoForeignKeyIdentifier()
101
105
$ queryBuilder ->getRootEntities ()->willReturn (['Dummy ' ]);
102
106
$ queryBuilder ->getRootAliases ()->willReturn (['d ' ]);
103
107
$ classMetadata = new ClassMetadata ('Dummy ' );
108
+ $ classMetadata ->isIdentifierComposite = true ;
109
+ $ classMetadata ->containsForeignIdentifier = false ;
104
110
$ objectManager = $ this ->prophesize (ObjectManager::class);
105
111
$ objectManager ->getClassMetadata ('Dummy ' )->willReturn ($ classMetadata );
106
112
$ managerRegistry = $ this ->prophesize (ManagerRegistry::class);
0 commit comments