summaryrefslogtreecommitdiff
path: root/src/model/entities/Location.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/entities/Location.php')
-rw-r--r--src/model/entities/Location.php14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/model/entities/Location.php b/src/model/entities/Location.php
index 11102f9..3574272 100644
--- a/src/model/entities/Location.php
+++ b/src/model/entities/Location.php
@@ -6,20 +6,8 @@ use Doctrine\ORM\EntityManager;
6 6
7#[ORM\Entity] 7#[ORM\Entity]
8#[ORM\Table(name: 'locations')] 8#[ORM\Table(name: 'locations')]
9class Location 9class Location extends Prestation
10{ 10{
11 #[ORM\Id]
12 #[ORM\Column(type: 'integer')]
13 #[ORM\GeneratedValue]
14 private int|null $id = null;
15
16 //~ #[ORM\ManyToOne(targetEntity: Prestation::class, cascade: ['persist'])]
17 //~ #[ORM\JoinColumn(name: 'id_presta', referencedColumnName: 'id')]
18 //~ private Prestation|null $presta = null;
19 #[ORM\OneToOne(targetEntity: Prestation::class, inversedBy: 'location', cascade: ['persist'])]
20 #[ORM\JoinColumn(name: 'id_presta', referencedColumnName: 'id')]
21 private ?Prestation $presta = null;
22
23 #[ORM\Column] 11 #[ORM\Column]
24 protected string $designation; 12 protected string $designation;
25 #[ORM\Column] 13 #[ORM\Column]