Commit a4280511 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Ajout du cas null pour DoctorantRepository::findOneBySourceCode

parent d96d21f1
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Doctorant/src/Doctorant/Entity/Db/Repository/DoctorantRepository.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class DoctorantRepository extends DefaultEntityRepository
     * @param string $sourceCode
     * @return Doctorant
     */
    public function findOneBySourceCode(string $sourceCode): Doctorant
    public function findOneBySourceCode(string $sourceCode): ?Doctorant
    {
        $qb = $this->createQueryBuilder('t');
        $qb