Debug remove_edition

This commit is contained in:
Kouril42 2023-02-21 17:07:57 +01:00
parent afae71919e
commit 5cc241bdfa
2 changed files with 3 additions and 3 deletions

View File

@ -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")]

View File

@ -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()
;
}
}