summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2026-10-17 17:54:28 +0200
committerpolo <ordipolo@gmx.fr>2026-10-17 17:54:28 +0200
commit93c5a89a7a4ff7e7e3d83fd6799df96b7da4283a (patch)
tree92b5cdb6fbfc996c3764823bc0cc94da8faab401 /src/model
parent05af2b8b663badcccaef3c4f26a13842f94750d0 (diff)
downloadAppliGestionPHP-93c5a89a7a4ff7e7e3d83fd6799df96b7da4283a.tar.gz
AppliGestionPHP-93c5a89a7a4ff7e7e3d83fd6799df96b7da4283a.tar.bz2
AppliGestionPHP-93c5a89a7a4ff7e7e3d83fd6799df96b7da4283a.zip
retypage date prestations en string 2
Diffstat (limited to 'src/model')
-rw-r--r--src/model/entities/Prestation.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/model/entities/Prestation.php b/src/model/entities/Prestation.php
index 9628afc..fad7d7c 100644
--- a/src/model/entities/Prestation.php
+++ b/src/model/entities/Prestation.php
@@ -16,19 +16,10 @@ class Prestation
16 #[ORM\ManyToOne(targetEntity: Client::class, cascade: ['persist'])] 16 #[ORM\ManyToOne(targetEntity: Client::class, cascade: ['persist'])]
17 #[ORM\JoinColumn(name: 'id_client', referencedColumnName: 'id')] 17 #[ORM\JoinColumn(name: 'id_client', referencedColumnName: 'id')]
18 private ?Client $client = null; // type int en SQL et dans la base 18 private ?Client $client = null; // type int en SQL et dans la base
19
20 #[ORM\Column] 19 #[ORM\Column]
21 private string $code_presta; 20 private string $code_presta;
22
23 #[ORM\Column]
24 private int $date; // timestamp unix
25
26 // ajouter attrinut ", nullable: true"
27 // remplissage: UPDATE prestations SET date_new = strftime('%Y-%m-%d', date, 'unixepoch');
28 // ensuite remettre NOT NULL
29 #[ORM\Column(type: 'string', length: 10)] // format 'aaaa-mm-jj' 21 #[ORM\Column(type: 'string', length: 10)] // format 'aaaa-mm-jj'
30 private string $date_new; 22 private string $date;
31
32 #[ORM\Column] 23 #[ORM\Column]
33 private string $type_presta; 24 private string $type_presta;
34 #[ORM\Column] 25 #[ORM\Column]