From f27cca08ff786ceff1870147f6d6bad14d71117f Mon Sep 17 00:00:00 2001 From: polo Date: Fri, 23 Oct 2026 00:47:32 +0200 Subject: =?UTF-8?q?dossiers=20avec=20majuscule,=20namespace=20pour=20toute?= =?UTF-8?q?s=20les=20classes,=20autoload=20psr-4,=20UserDataService::creat?= =?UTF-8?q?eZip=20d=C3=A9plac=C3=A9=20dans=20Backup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/entities/AssetEmployment.php | 54 ---------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/model/entities/AssetEmployment.php (limited to 'src/model/entities/AssetEmployment.php') diff --git a/src/model/entities/AssetEmployment.php b/src/model/entities/AssetEmployment.php deleted file mode 100644 index 04bbd9a..0000000 --- a/src/model/entities/AssetEmployment.php +++ /dev/null @@ -1,54 +0,0 @@ - ressource unique" (paires node_data/role uniques) -// doctrine gère mal les clés primaires triples, j'ai donc choisi une clé primaire double node_data_id/role - -declare(strict_types=1); - -namespace App\Entity; - -use Doctrine\ORM\Mapping as ORM; - -#[ORM\Entity] -#[ORM\Table(name: TABLE_PREFIX . 'asset_employment')] -class AssetEmployment -{ - // clé primaire double - #[ORM\Id] - #[ORM\ManyToOne(targetEntity: NodeData::class, inversedBy: 'asset_employment')] - #[ORM\JoinColumn(name: 'node_data_id', referencedColumnName: 'id_node_data', onDelete: 'CASCADE')] - private NodeData $node_data; - - #[ORM\Id] - #[ORM\Column(type: 'string', length: 50)] - private string $role; - - #[ORM\ManyToOne(targetEntity: Asset::class, inversedBy: 'asset_employment')] - #[ORM\JoinColumn(name: 'asset_id', referencedColumnName: 'id_asset', onDelete: 'CASCADE')] - private Asset $asset; - - public function __construct(NodeData $node_data, Asset $asset, string $role){ - $this->node_data = $node_data; - $this->asset = $asset; - $this->role = $role; - } - - /*public function getNodeData(): NodeData - { - return $this->node_data; - }*/ - public function getAsset(): Asset - { - return $this->asset; - } - public function setAsset(Asset $asset): self - { - $this->asset = $asset; - return $this; - } - public function getRole(): string - { - return $this->role; - } -} -- cgit v1.2.3