diff --git a/module/Application/src/Application/Repository/FluxFileoutRepository.php b/module/Application/src/Application/Repository/FluxFileoutRepository.php index de372e4..03811d0 100644 --- a/module/Application/src/Application/Repository/FluxFileoutRepository.php +++ b/module/Application/src/Application/Repository/FluxFileoutRepository.php @@ -35,4 +35,14 @@ class FluxFileoutRepository extends EntityRepository return $query->getResult(); } + + public function getByFilename($name) + { + $dql = "SELECT f FROM Application\Entity\FluxFileout f WHERE ". + "f.fileout=:name"; + $query = $this->getEntityManager()->createQuery($dql) + ->setParameter('name', $name); + + return $query->getOneOrNullResult(); + } } \ No newline at end of file