From dad8927ea06df677be0a45a0c6f3348c6d72a26e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr> Date: Wed, 28 Jan 2015 15:30:12 +0100 Subject: [PATCH] =?UTF-8?q?UploadedFile:=20affecte=20des=20valeurs=20par?= =?UTF-8?q?=20d=C3=A9faut=20pour=20certaines=20propri=C3=A9t=C3=A9s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Entity/UploadedFile.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Entity/UploadedFile.php b/Entity/UploadedFile.php index e59246b7..27dfa2d8 100644 --- a/Entity/UploadedFile.php +++ b/Entity/UploadedFile.php @@ -49,19 +49,19 @@ class UploadedFile implements UploadedFileInterface * @ORM\Column(type="string", length=255, nullable=true) * @var string */ - private $mimeType; + private $mimeType = null; /** * @ORM\Column(type="integer", nullable=true) * @var int */ - private $size; + private $size = null; /** * @ORM\Column(type="string", length=64, nullable=true) * @var string */ - private $checksum; + private $checksum = null; /** * @ORM\Column(type="string", length=10) @@ -79,7 +79,8 @@ class UploadedFile implements UploadedFileInterface * @ORM\Column(type="json_array", nullable=true) * @var array */ - private $metadata; + private $metadata = null; + /** * @ORM\Column(type="string", length=256, nullable=true) * @var string @@ -587,7 +588,6 @@ class UploadedFile implements UploadedFileInterface 'icon' => MimeTypeIcon::getMimeTypeIcon($this->getMimeType()) ]; } - private $localTempPath = null; public function getLocalPath() { -- GitLab