summaryrefslogtreecommitdiff
path: root/src/model/entities/Devis.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-07-08 16:30:10 +0200
committerpolo <ordipolo@gmx.fr>2025-07-08 16:30:10 +0200
commit4accca2c57b5f12169afe6a75c74efadd86d835d (patch)
treeb0b7b821956144e5edc75471302b7624eabde3df /src/model/entities/Devis.php
parent08145a5055c3f3f1d003ece3e0515da0be9a7279 (diff)
downloadAppliGestionPHP-4accca2c57b5f12169afe6a75c74efadd86d835d.zip
accès instances depuis Prestation
Diffstat (limited to 'src/model/entities/Devis.php')
-rw-r--r--src/model/entities/Devis.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/model/entities/Devis.php b/src/model/entities/Devis.php
index 99589e7..8518f8e 100644
--- a/src/model/entities/Devis.php
+++ b/src/model/entities/Devis.php
@@ -13,9 +13,12 @@ class Devis
13 #[ORM\GeneratedValue] 13 #[ORM\GeneratedValue]
14 private int|null $id = null; 14 private int|null $id = null;
15 15
16 #[ORM\ManyToOne(targetEntity: Prestation::class, cascade: ['persist'])] 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: 'devis', cascade: ['persist'])]
17 #[ORM\JoinColumn(name: 'id_presta', referencedColumnName: 'id')] 20 #[ORM\JoinColumn(name: 'id_presta', referencedColumnName: 'id')]
18 private Prestation|null $presta = null; 21 private ?Prestation $presta = null;
19 22
20 #[ORM\Column] 23 #[ORM\Column]
21 private string $taches; 24 private string $taches;