summaryrefslogtreecommitdiff
path: root/src/model/entities/Location.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2026-10-19 23:42:34 +0200
committerpolo <ordipolo@gmx.fr>2026-10-19 23:42:34 +0200
commit79bc73d7985f51f2a6a1b3cb6e0115f59afb2ac4 (patch)
tree85ddbac0a01731030b021871736e05c4e1bd7696 /src/model/entities/Location.php
parentd76eace8bdc50e208d9754ff50acb58525887048 (diff)
downloadAppliGestionPHP-79bc73d7985f51f2a6a1b3cb6e0115f59afb2ac4.tar.gz
AppliGestionPHP-79bc73d7985f51f2a6a1b3cb6e0115f59afb2ac4.tar.bz2
AppliGestionPHP-79bc73d7985f51f2a6a1b3cb6e0115f59afb2ac4.zip
mise en place de l'héritage 1
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]