diff options
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 | { |
