diff --git a/src/Entity/Place.php b/src/Entity/Place.php index 47dd125..4070528 100644 --- a/src/Entity/Place.php +++ b/src/Entity/Place.php @@ -16,7 +16,7 @@ class Place private $id; #[ORM\Column(type: "string")] - // Either 'C'orridor , 'S'tairs , 'E'levator or 'R'oom + // Either 'C'orridor , 'S'tairs , 'L'ift or 'R'oom private $type; #[ORM\OneToMany(targetEntity: PlaceName::class, mappedBy: "place")] diff --git a/src/Repository/EditionRepository.php b/src/Repository/EditionRepository.php index e3609b1..0dabd86 100644 --- a/src/Repository/EditionRepository.php +++ b/src/Repository/EditionRepository.php @@ -52,13 +52,13 @@ class EditionRepository extends ServiceEntityRepository } - public function findEditionById(int $id): ?Edition + public function findEditionById(int $id): array { return $this->createQueryBuilder('f') ->andWhere('f.id = :val') ->setParameter('val', $id) ->getQuery() - ->getOneOrNullResult() + ->getResult() ; } }