File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 99use Doctrine \Bundle \DoctrineBundle \Repository \ServiceEntityRepository ;
1010use Doctrine \Common \Collections \ArrayCollection ;
1111use Doctrine \Common \Collections \Collection ;
12- use Symfony \ Bridge \ Doctrine \RegistryInterface ;
12+ use Doctrine \Persistence \ ManagerRegistry ;
1313
1414class DataModelGenerator
1515{
@@ -603,15 +603,15 @@ protected function generateMissingEntities(): void
603603 if (!class_exists ($ repositoryName )) {
604604 $ class = new EntityClass ($ repository , '\\' . $ this ->inputModel ->getNamespace ('repository ' ), [
605605 ServiceEntityRepository::class,
606- RegistryInterface ::class,
606+ ManagerRegistry ::class,
607607 $ className ,
608608 ]);
609609
610610 $ class ->setModifiers ([]);
611611 $ class ->setExtends ('ServiceEntityRepository ' );
612612
613613 $ class ->setBody (MakeFactory::renderArrayAsString ([
614- 'public function __construct(RegistryInterface $registry) ' ,
614+ 'public function __construct(ManagerRegistry $registry) ' ,
615615 '{ ' ,
616616 [
617617 "parent::__construct( \$registry, {$ entity ->getName ()}::class); " ,
You can’t perform that action at this time.
0 commit comments