fix: Update StoredObject uuid property.

This commit is contained in:
Pol Dellaiera 2021-09-29 14:52:22 +02:00
parent 8c2d211661
commit 664fcd07ef

View File

@ -9,6 +9,7 @@ use ChampsLibres\AsyncUploaderBundle\Model\AsyncFileInterface;
use ChampsLibres\AsyncUploaderBundle\Validator\Constraints\AsyncFileExists; use ChampsLibres\AsyncUploaderBundle\Validator\Constraints\AsyncFileExists;
use ChampsLibres\WopiLib\Contract\Entity\Document; use ChampsLibres\WopiLib\Contract\Entity\Document;
use DateTimeInterface; use DateTimeInterface;
use Ramsey\Uuid\Rfc4122\UuidInterface;
use Ramsey\Uuid\Uuid; use Ramsey\Uuid\Uuid;
use Symfony\Component\Serializer\Annotation as Serializer; use Symfony\Component\Serializer\Annotation as Serializer;
@ -52,7 +53,7 @@ class StoredObject implements AsyncFileInterface, Document
/** /**
* @ORM\Column(type="uuid", unique=true) * @ORM\Column(type="uuid", unique=true)
*/ */
private Uuid $uuid; private UuidInterface $uuid;
/** /**
* @ORM\Column(type="datetime", name="creation_date") * @ORM\Column(type="datetime", name="creation_date")
@ -163,7 +164,7 @@ class StoredObject implements AsyncFileInterface, Document
return $this; return $this;
} }
public function getUuid(): Uuid public function getUuid(): UuidInterface
{ {
return $this->uuid; return $this->uuid;
} }