diff options
| author | polo <ordipolo@gmx.fr> | 2025-10-24 02:27:19 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-10-24 02:27:19 +0200 |
| commit | 5311271ae590460b986e3e09edcdc665b73710ca (patch) | |
| tree | f31f6b9602d1607e838a7a4bfe320db9c8d44bb4 /src/model/entities/Image.php | |
| parent | f9a9bf1ae4fac9317fd71f0bcb207544b000e6f1 (diff) | |
| download | cms-5311271ae590460b986e3e09edcdc665b73710ca.zip | |
entité pour table intermédiaire à 3 champs entre NodeData et Asset, table Asset repensée
Diffstat (limited to 'src/model/entities/Image.php')
| -rw-r--r-- | src/model/entities/Image.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/entities/Image.php b/src/model/entities/Image.php index e867a5f..2ee379a 100644 --- a/src/model/entities/Image.php +++ b/src/model/entities/Image.php | |||
| @@ -5,6 +5,7 @@ declare(strict_types=1); | |||
| 5 | 5 | ||
| 6 | namespace App\Entity; | 6 | namespace App\Entity; |
| 7 | 7 | ||
| 8 | use Doctrine\Common\Collections\Collection; | ||
| 8 | use Doctrine\ORM\Mapping as ORM; | 9 | use Doctrine\ORM\Mapping as ORM; |
| 9 | 10 | ||
| 10 | #[ORM\Entity] | 11 | #[ORM\Entity] |
| @@ -42,7 +43,7 @@ class Image | |||
| 42 | => Enregistrement dans la base de données : On enregistre les informations de l'image dans la base de données. */ | 43 | => Enregistrement dans la base de données : On enregistre les informations de l'image dans la base de données. */ |
| 43 | 44 | ||
| 44 | #[ORM\ManyToMany(targetEntity: Article::class, mappedBy: "images")] | 45 | #[ORM\ManyToMany(targetEntity: Article::class, mappedBy: "images")] |
| 45 | private $article; | 46 | private Collection $article; |
| 46 | 47 | ||
| 47 | public function __construct(string $name, ?string $path, ?string $path_mini, string $mime_type, string $alt) | 48 | public function __construct(string $name, ?string $path, ?string $path_mini, string $mime_type, string $alt) |
| 48 | { | 49 | { |
