Skip to content

Commit bba2edf

Browse files
authored
fix issue
1 parent d187c25 commit bba2edf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DataModelGenerator/DataModelGenerator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
1010
use Doctrine\Common\Collections\ArrayCollection;
1111
use Doctrine\Common\Collections\Collection;
12-
use Symfony\Bridge\Doctrine\RegistryInterface;
12+
use Doctrine\Persistence\ManagerRegistry;
1313

1414
class 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);",

0 commit comments

Comments
 (0)