Revert "Feature: [docgen][stored object] update model to store status, template_id and fix defaults"

This reverts commit 55918bcafb.
This commit is contained in:
2023-02-16 14:08:16 +01:00
parent 9676975cd8
commit 6254303392
2 changed files with 7 additions and 50 deletions

View File

@@ -41,6 +41,12 @@ class StoredObject implements AsyncFileInterface, Document, TrackCreationInterfa
use TrackCreationTrait;
/**
* @ORM\Column(type="datetime", name="creation_date")
* @Serializer\Groups({"read", "write"})
*/
private DateTimeInterface $creationDate;
/**
* @ORM\Column(type="json", name="datas")
* @Serializer\Groups({"read", "write"})
@@ -81,7 +87,7 @@ class StoredObject implements AsyncFileInterface, Document, TrackCreationInterfa
private string $title = '';
/**
* @ORM\Column(type="text", name="type", options={"default": ""})
* @ORM\Column(type="text", name="type")
* @Serializer\Groups({"read", "write"})
*/
private string $type = '';
@@ -113,7 +119,6 @@ class StoredObject implements AsyncFileInterface, Document, TrackCreationInterfa
/**
* @Serializer\Groups({"read", "write"})
* @deprecated
*/
public function getCreationDate(): DateTime
{
@@ -180,7 +185,6 @@ class StoredObject implements AsyncFileInterface, Document, TrackCreationInterfa
/**
* @Serializer\Groups({"write"})
* @deprecated
*/
public function setCreationDate(DateTime $creationDate): self
{