mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-09-11 16:50:46 +02:00
Mise à jour de symfony
Mise à jour de PHP Correction des entitées from attributes to annotations Ajout des entitées des objets 3D
This commit is contained in:
+9
-17
@@ -7,29 +7,21 @@ use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
* @ORM\Entity(repositoryClass=PlaceRepository::class)
|
||||
* @ORM\InheritanceType("JOINED")
|
||||
* @ORM\DiscriminatorColumn(name="type", type="string")
|
||||
* @ORM\DiscriminatorMap({"room"="Room","corridor"="Corridor"})
|
||||
*/
|
||||
#[ORM\Entity(repositoryClass: PlaceRepository::class)]
|
||||
#[ORM\InheritanceType("JOINED")]
|
||||
#[ORM\DiscriminatorColumn(name: "type", type: "string")]
|
||||
#[ORM\DiscriminatorMap({"room": "Room","corridor": "Corridor"})]
|
||||
class Place
|
||||
{
|
||||
/**
|
||||
* @ORM\Id
|
||||
* @ORM\GeneratedValue
|
||||
* @ORM\Column(type="integer")
|
||||
*/
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
#[ORM\Column(type: "integer")]
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToMany(targetEntity=Place::class, inversedBy="connectedPlaces")
|
||||
*/
|
||||
#[ORM\ManyToMany(targetEntity: Place::class, inversedBy: "connectedPlaces")]
|
||||
private $connection;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToMany(targetEntity=Place::class, mappedBy="connection")
|
||||
*/
|
||||
#[ORM\ManyToMany(targetEntity: Place::class, mappedBy: "connection")]
|
||||
private $connectedPlaces;
|
||||
|
||||
public function __construct()
|
||||
|
||||
Reference in New Issue
Block a user