mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
fix: Update StoredObject entity.
This commit is contained in:
parent
0366d0cb17
commit
c208797daf
@ -7,6 +7,7 @@ namespace Chill\DocStoreBundle\Entity;
|
|||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use ChampsLibres\AsyncUploaderBundle\Model\AsyncFileInterface;
|
use ChampsLibres\AsyncUploaderBundle\Model\AsyncFileInterface;
|
||||||
use ChampsLibres\AsyncUploaderBundle\Validator\Constraints\AsyncFileExists;
|
use ChampsLibres\AsyncUploaderBundle\Validator\Constraints\AsyncFileExists;
|
||||||
|
use DateTimeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent a document stored in an object store
|
* Represent a document stored in an object store
|
||||||
@ -35,23 +36,20 @@ class StoredObject implements AsyncFileInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="json_array", name="key")
|
* @ORM\Column(type="json_array", name="key")
|
||||||
* @var array
|
|
||||||
*/
|
*/
|
||||||
private $keyInfos = array();
|
private array $keyInfos;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @var int[]
|
* @var int[]
|
||||||
* @ORM\Column(type="json_array", name="iv")
|
* @ORM\Column(type="json_array", name="iv")
|
||||||
*/
|
*/
|
||||||
private $iv = array();
|
private array $iv;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @var \DateTime
|
|
||||||
* @ORM\Column(type="datetime", name="creation_date")
|
* @ORM\Column(type="datetime", name="creation_date")
|
||||||
*/
|
*/
|
||||||
private $creationDate;
|
private DateTimeInterface $creationDate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="text", name="type")
|
* @ORM\Column(type="text", name="type")
|
||||||
@ -59,11 +57,9 @@ class StoredObject implements AsyncFileInterface
|
|||||||
private string $type = '';
|
private string $type = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
* @ORM\Column(type="json_array", name="datas")
|
* @ORM\Column(type="json_array", name="datas")
|
||||||
*/
|
*/
|
||||||
private $datas = [];
|
private array $datas;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user