summaryrefslogtreecommitdiff
path: root/src/model/entities/Devis.php
diff options
context:
space:
mode:
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;