temporary stored object fixes

This commit is contained in:
2021-09-29 15:15:10 +02:00
parent 8c2d211661
commit 2c1d3d08c3
5 changed files with 12 additions and 9 deletions

View File

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