From 5cc241bdfa222a45623ddb43441b40c7c9a861ca Mon Sep 17 00:00:00 2001 From: Kouril42 Date: Tue, 21 Feb 2023 17:07:57 +0100 Subject: [PATCH] Debug remove_edition --- src/Entity/Place.php | 2 +- src/Repository/EditionRepository.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() ; } }