File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \MakerBundle \Doctrine ;
1313
14- use Doctrine \Common \Persistence \Mapping \MappingException as CommonMappingException ;
14+ use Doctrine \Common \Persistence \Mapping \MappingException as LegacyCommonMappingException ;
1515use Doctrine \ORM \Mapping \ClassMetadata ;
1616use Doctrine \ORM \Mapping \MappingException ;
17+ use Doctrine \Persistence \Mapping \MappingException as PersistenceMappingException ;
1718use Symfony \Bundle \MakerBundle \Exception \RuntimeCommandException ;
1819use Symfony \Bundle \MakerBundle \FileManager ;
1920use Symfony \Bundle \MakerBundle \Generator ;
@@ -43,7 +44,7 @@ public function regenerateEntities(string $classOrNamespace)
4344 {
4445 try {
4546 $ metadata = $ this ->doctrineHelper ->getMetadata ($ classOrNamespace );
46- } catch (MappingException | CommonMappingException $ mappingException ) {
47+ } catch (MappingException | LegacyCommonMappingException | PersistenceMappingException $ mappingException ) {
4748 $ metadata = $ this ->doctrineHelper ->getMetadata ($ classOrNamespace , true );
4849 }
4950
You can’t perform that action at this time.
0 commit comments