mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-03-17 22:51:04 +01:00
Debug remove_edition
This commit is contained in:
parent
afae71919e
commit
5cc241bdfa
@ -16,7 +16,7 @@ class Place
|
|||||||
private $id;
|
private $id;
|
||||||
|
|
||||||
#[ORM\Column(type: "string")]
|
#[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;
|
private $type;
|
||||||
|
|
||||||
#[ORM\OneToMany(targetEntity: PlaceName::class, mappedBy: "place")]
|
#[ORM\OneToMany(targetEntity: PlaceName::class, mappedBy: "place")]
|
||||||
|
|||||||
@ -52,13 +52,13 @@ class EditionRepository extends ServiceEntityRepository
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function findEditionById(int $id): ?Edition
|
public function findEditionById(int $id): array
|
||||||
{
|
{
|
||||||
return $this->createQueryBuilder('f')
|
return $this->createQueryBuilder('f')
|
||||||
->andWhere('f.id = :val')
|
->andWhere('f.id = :val')
|
||||||
->setParameter('val', $id)
|
->setParameter('val', $id)
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->getOneOrNullResult()
|
->getResult()
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user