mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-09-11 16:50:46 +02:00
Séparation de PlaceType dans un autre fichier.
This commit is contained in:
@@ -7,14 +7,6 @@ use Doctrine\Common\Collections\ArrayCollection;
|
|||||||
use Doctrine\Common\Collections\Collection;
|
use Doctrine\Common\Collections\Collection;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
enum PlaceType: string {
|
|
||||||
case Room = 'R';
|
|
||||||
case Corridor = 'C';
|
|
||||||
case Stairs = 'S';
|
|
||||||
case Lift = 'L';
|
|
||||||
case Toilets = 'T';
|
|
||||||
}
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: PlaceRepository::class)]
|
#[ORM\Entity(repositoryClass: PlaceRepository::class)]
|
||||||
class Place
|
class Place
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Entity;
|
||||||
|
|
||||||
|
enum PlaceType: string {
|
||||||
|
case Room = 'R';
|
||||||
|
case Corridor = 'C';
|
||||||
|
case Stairs = 'S';
|
||||||
|
case Lift = 'L';
|
||||||
|
case Toilets = 'T';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user