Associate generate document with evaluation and update UX to go back to

documents
This commit is contained in:
2021-08-20 12:44:15 +02:00
parent 80672a038c
commit 7f28effc1e
8 changed files with 175 additions and 16 deletions

View File

@@ -8,12 +8,11 @@ use Doctrine\ORM\Mapping as ORM;
use ChampsLibres\AsyncUploaderBundle\Model\AsyncFileInterface;
use ChampsLibres\AsyncUploaderBundle\Validator\Constraints\AsyncFileExists;
use DateTimeInterface;
use Symfony\Component\Serializer\Annotation as Serializer;
/**
* Represent a document stored in an object store
*
* @author Julien Fastré <julien.fastre@champs-libres.coop>
*
* @ORM\Entity()
* @ORM\Table("chill_doc.stored_object")
* @AsyncFileExists(
@@ -26,11 +25,13 @@ class StoredObject implements AsyncFileInterface
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
* @Serializer\Groups({"read"})
*/
private $id;
/**
* @ORM\Column(type="text")
* @Serializer\Groups({"read"})
*/
private $filename;
@@ -48,16 +49,19 @@ class StoredObject implements AsyncFileInterface
/**
* @ORM\Column(type="datetime", name="creation_date")
* @Serializer\Groups({"read"})
*/
private DateTimeInterface $creationDate;
/**
* @ORM\Column(type="text", name="type")
* @Serializer\Groups({"read"})
*/
private string $type = '';
/**
* @ORM\Column(type="json_array", name="datas")
* @Serializer\Groups({"read"})
*/
private array $datas = [];