Skip to content
Snippets Groups Projects
Commit a56fd629 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Correction du type de retour trop restrictif de SourceListener::fetchDefaultSource().

parent 9134fbc7
No related branches found
No related tags found
No related merge requests found
Pipeline #17973 passed
......@@ -4,6 +4,7 @@ Changelog
5.2.2
-----
- [FIX] Synchro : la colonne 'source_id' peut être présente dans la table/vue source.
- [FIX] Correction du type de retour trop restrictif de SourceListener::fetchDefaultSource().
5.2.1
-----
......
......@@ -9,6 +9,7 @@ use Doctrine\ORM\Event\PreUpdateEventArgs;
use Doctrine\ORM\Events;
use RuntimeException;
use UnicaenDbImport\Entity\Db\Interfaces\SourceAwareInterface;
use UnicaenDbImport\Entity\Db\Interfaces\SourceInterface;
use UnicaenDbImport\Entity\Db\Source;
/**
......@@ -76,7 +77,7 @@ class SourceListener implements EventSubscriber
* @param EntityManager $entityManager
* @return Source
*/
private function fetchDefaultSource(EntityManager $entityManager): Source
private function fetchDefaultSource(EntityManager $entityManager): SourceInterface
{
if ($this->sourceEntityClass === null) {
throw new RuntimeException("La classe d'entité Source n'a pas été spécifiée");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment