File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ private function getMetadata(string $class): ?ClassMetadata
202
202
{
203
203
try {
204
204
return $ this ->entityManager ? $ this ->entityManager ->getClassMetadata ($ class ) : $ this ->classMetadataFactory ->getMetadataFor ($ class );
205
- } catch (MappingException | OrmMappingException $ exception ) {
205
+ } catch (MappingException | OrmMappingException | LegacyMappingException $ exception ) {
206
206
return null ;
207
207
}
208
208
}
Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ public function testLoaderWithoutIdReaderCanBeOptimized()
408
408
})
409
409
;
410
410
411
- $ this ->om = $ this ->createMock (ObjectManager::class);
411
+ $ this ->om = $ this ->createMock (interface_exists ( ObjectManager::class) ? ObjectManager::class : LegacyObjectManager ::class);
412
412
$ this ->om ->expects ($ this ->once ())
413
413
->method ('getClassMetadata ' )
414
414
->with (SingleIntIdEntity::class)
You can’t perform that action at this time.
0 commit comments