From a71b918e07871f8d87460edb491cfc0412b2bcec Mon Sep 17 00:00:00 2001 From: Dani Garcia Date: Tue, 20 Feb 2024 17:39:58 +0100 Subject: [PATCH] generator-bundle: check SelfManagedInterface on interface regeneration --- .../Doctrine/EntityInterface/InterfaceRegenerator.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/EntityGeneratorBundle/Doctrine/EntityInterface/InterfaceRegenerator.php b/EntityGeneratorBundle/Doctrine/EntityInterface/InterfaceRegenerator.php index 822330c..37326d3 100644 --- a/EntityGeneratorBundle/Doctrine/EntityInterface/InterfaceRegenerator.php +++ b/EntityGeneratorBundle/Doctrine/EntityInterface/InterfaceRegenerator.php @@ -3,6 +3,7 @@ namespace IvozDevTools\EntityGeneratorBundle\Doctrine\EntityInterface; use Doctrine\ORM\Mapping\ClassMetadata; +use Ivoz\Core\Domain\Model\SelfManagedInterface; use IvozDevTools\EntityGeneratorBundle\Doctrine\ManipulatorInterface; use IvozDevTools\EntityGeneratorBundle\Generator; use Symfony\Bundle\MakerBundle\FileManager; @@ -72,6 +73,10 @@ public function makeInterface($classMetadata) $classMetadata->rootEntityName = $fqdn; $interfaces = $this->getParentInterfaces($fqdn); + if (in_array(SelfManagedInterface::class, $interfaces)) { + return; + } + [$classPath, $content] = $this->getClassTemplate( $classMetadata, 'doctrine/EntityInterface.tpl.php'