diff options
| -rw-r--r-- | src/model/entities/AssetEmployment.php | 4 |
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 | ||
