@@ -59,7 +59,8 @@ public function testHasRootEntityWithCompositeIdentifier()
5959 $ queryBuilder ->getRootEntities ()->willReturn (['Dummy ' ]);
6060 $ queryBuilder ->getRootAliases ()->willReturn (['d ' ]);
6161 $ classMetadata = new ClassMetadata ('Dummy ' );
62- $ classMetadata ->containsForeignIdentifier = true ;
62+ $ classMetadata ->isIdentifierComposite = true ;
63+ $ classMetadata ->containsForeignIdentifier = false ;
6364 $ objectManager = $ this ->prophesize (ObjectManager::class);
6465 $ objectManager ->getClassMetadata ('Dummy ' )->willReturn ($ classMetadata );
6566 $ managerRegistry = $ this ->prophesize (ManagerRegistry::class);
@@ -73,7 +74,8 @@ public function testHasRootEntityWithNoCompositeIdentifier()
7374 $ queryBuilder ->getRootEntities ()->willReturn (['Dummy ' ]);
7475 $ queryBuilder ->getRootAliases ()->willReturn (['d ' ]);
7576 $ classMetadata = new ClassMetadata ('Dummy ' );
76- $ classMetadata ->containsForeignIdentifier = false ;
77+ $ classMetadata ->isIdentifierComposite = false ;
78+ $ classMetadata ->containsForeignIdentifier = true ;
7779 $ objectManager = $ this ->prophesize (ObjectManager::class);
7880 $ objectManager ->getClassMetadata ('Dummy ' )->willReturn ($ classMetadata );
7981 $ managerRegistry = $ this ->prophesize (ManagerRegistry::class);
@@ -88,6 +90,8 @@ public function testHasRootEntityWithForeignKeyIdentifier()
8890 $ queryBuilder ->getRootAliases ()->willReturn (['d ' ]);
8991 $ classMetadata = new ClassMetadata ('Dummy ' );
9092 $ classMetadata ->setIdentifier (['id ' , 'name ' ]);
93+ $ classMetadata ->isIdentifierComposite = false ;
94+ $ classMetadata ->containsForeignIdentifier = true ;
9195 $ objectManager = $ this ->prophesize (ObjectManager::class);
9296 $ objectManager ->getClassMetadata ('Dummy ' )->willReturn ($ classMetadata );
9397 $ managerRegistry = $ this ->prophesize (ManagerRegistry::class);
@@ -101,6 +105,8 @@ public function testHasRootEntityWithNoForeignKeyIdentifier()
101105 $ queryBuilder ->getRootEntities ()->willReturn (['Dummy ' ]);
102106 $ queryBuilder ->getRootAliases ()->willReturn (['d ' ]);
103107 $ classMetadata = new ClassMetadata ('Dummy ' );
108+ $ classMetadata ->isIdentifierComposite = true ;
109+ $ classMetadata ->containsForeignIdentifier = false ;
104110 $ objectManager = $ this ->prophesize (ObjectManager::class);
105111 $ objectManager ->getClassMetadata ('Dummy ' )->willReturn ($ classMetadata );
106112 $ managerRegistry = $ this ->prophesize (ManagerRegistry::class);
0 commit comments