Skip to content

Commit

Permalink
generator-bundle: check SelfManagedInterface on interface regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
danigargar committed Feb 21, 2024
1 parent 701a7dd commit a71b918
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit a71b918

Please sign in to comment.