From 61a907785d9382adeb2de05b4b080de1d270f6d0 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 19 Oct 2025 14:24:00 +0200 Subject: =?UTF-8?q?suppression=20champ=20file=5Fpath=5Fmini=20dans=20Asset?= =?UTF-8?q?,=20nettoyage=20divers,=20r=C3=A9solution=20bug=20quand=20pas?= =?UTF-8?q?=20d'image=20de=20fond?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/entities/Asset.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/model/entities/Asset.php') diff --git a/src/model/entities/Asset.php b/src/model/entities/Asset.php index df8c98b..e1071b4 100644 --- a/src/model/entities/Asset.php +++ b/src/model/entities/Asset.php @@ -19,13 +19,10 @@ class Asset #[ORM\Column(type: "string", length: 255, unique: true)] // nom d'image UNIQUE private string $file_name; - // choisir un répertoire du genre /var/www/html/uploads/ de préférence hors de /src + // choisir un répertoire du genre /var/www/html/uploads/, au moins hors de /src #[ORM\Column(type: "string", length: 255, unique: true, nullable: true)] private ?string $file_path; - #[ORM\Column(type: "string", length: 255, unique: true, nullable: true)] - private ?string $file_path_mini; - #[ORM\Column(type: "string", length: 255, nullable: true)] private string $mime_type; // image/jpeg, image/png, etc @@ -44,11 +41,10 @@ class Asset #[ORM\ManyToMany(targetEntity: NodeData::class, mappedBy: "assets")] private $node_data; - public function __construct(string $name, ?string $path, ?string $path_mini, string $mime_type, string $alt) + public function __construct(string $name, ?string $path, string $mime_type, string $alt) { $this->file_name = $name; $this->file_path = $path; - $this->file_path_mini = $path_mini; $this->mime_type = $mime_type; $this->alt = $alt; } @@ -61,10 +57,6 @@ class Asset { return $this->file_path; } - public function getFilePathMini(): string - { - return $this->file_path_mini; - } public function getAlt(): string { return $this->alt; -- cgit v1.2.3