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'