Commit 2abc0ceb authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

La source peut aussi être injectée si l'entité est en ImportAwareInterface

parent 5c1d5f7f
Loading
Loading
Loading
Loading
+1 −1
Changes for src/UnicaenImport/ORM/Event/Listeners/EntitySourceInjector.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ class EntitySourceInjector implements EventSubscriber
        }

        // L'entité doit implémenter l'interface SourceAwareInterface.
        if (!$entity instanceof SourceAwareInterface) {
        if (!($entity instanceof SourceAwareInterface || $entity instanceof ImportAwareInterface)) {
            return;
        }