mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-09-11 16:50:46 +02:00
Fix de quelques erreurs Doctrine et ajout des noms des Places
This commit is contained in:
@@ -8,9 +8,10 @@ use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity(repositoryClass: PlaceRepository::class)]
|
||||
#[ORM\MappedSuperclass]
|
||||
#[ORM\InheritanceType("JOINED")]
|
||||
#[ORM\DiscriminatorColumn(name: "type", type: "string")]
|
||||
#[ORM\DiscriminatorMap({"room": "Room","corridor": "Corridor"})]
|
||||
#[ORM\DiscriminatorMap(["room" => Room::class, "corridor" => Corridor::class])]
|
||||
class Place
|
||||
{
|
||||
#[ORM\Id]
|
||||
@@ -23,6 +24,9 @@ class Place
|
||||
|
||||
#[ORM\ManyToMany(targetEntity: Place::class, mappedBy: "connection")]
|
||||
private $connectedPlaces;
|
||||
|
||||
#[ORM\OneToMany(targetEntity: PlaceName::class, mappedBy: "place")]
|
||||
private $names;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user