aboutsummaryrefslogtreecommitdiff
path: root/src/model/entities/AssetEmployment.php
diff options
context:
space:
mode:
authorpolo <contact@ordipolo.fr>2026-05-19 00:47:37 +0200
committerpolo <contact@ordipolo.fr>2026-05-19 00:47:37 +0200
commita3f64de3eaaf1d9acbc82f7dfdf34a239411c0ba (patch)
tree133298455b56348cd686f39a735e8ced62097433 /src/model/entities/AssetEmployment.php
parentac78568e1c1a91564eb6bd35c03d9a8a781bc53d (diff)
downloadcms-a3f64de3eaaf1d9acbc82f7dfdf34a239411c0ba.tar.gz
cms-a3f64de3eaaf1d9acbc82f7dfdf34a239411c0ba.tar.bz2
cms-a3f64de3eaaf1d9acbc82f7dfdf34a239411c0ba.zip
corrections erreurs orm:validate-schema
Diffstat (limited to 'src/model/entities/AssetEmployment.php')
-rw-r--r--src/model/entities/AssetEmployment.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/entities/AssetEmployment.php b/src/model/entities/AssetEmployment.php
index 88ad1bc..04bbd9a 100644
--- a/src/model/entities/AssetEmployment.php
+++ b/src/model/entities/AssetEmployment.php
@@ -16,7 +16,7 @@ class AssetEmployment
16{ 16{
17 // clé primaire double 17 // clé primaire double
18 #[ORM\Id] 18 #[ORM\Id]
19 #[ORM\ManyToOne(targetEntity: NodeData::class, inversedBy: 'nda_collection')] 19 #[ORM\ManyToOne(targetEntity: NodeData::class, inversedBy: 'asset_employment')]
20 #[ORM\JoinColumn(name: 'node_data_id', referencedColumnName: 'id_node_data', onDelete: 'CASCADE')] 20 #[ORM\JoinColumn(name: 'node_data_id', referencedColumnName: 'id_node_data', onDelete: 'CASCADE')]
21 private NodeData $node_data; 21 private NodeData $node_data;
22 22
@@ -24,7 +24,7 @@ class AssetEmployment
24 #[ORM\Column(type: 'string', length: 50)] 24 #[ORM\Column(type: 'string', length: 50)]
25 private string $role; 25 private string $role;
26 26
27 #[ORM\ManyToOne(targetEntity: Asset::class)] 27 #[ORM\ManyToOne(targetEntity: Asset::class, inversedBy: 'asset_employment')]
28 #[ORM\JoinColumn(name: 'asset_id', referencedColumnName: 'id_asset', onDelete: 'CASCADE')] 28 #[ORM\JoinColumn(name: 'asset_id', referencedColumnName: 'id_asset', onDelete: 'CASCADE')]
29 private Asset $asset; 29 private Asset $asset;
30 30