[accompanyingPeriodWork] add evaluation to normalizer

This commit is contained in:
2021-08-02 00:13:08 +02:00
committed by Marc Ducobu
parent 6544566c34
commit 5635d19252
5 changed files with 297 additions and 13 deletions

View File

@@ -3,10 +3,14 @@
namespace Chill\PersonBundle\Entity\SocialWork;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation as Serializer;
/**
* @ORM\Entity
* @ORM\Table(name="chill_person_social_work_evaluation")
* @Serializer\DiscriminatorMap(typeProperty="type", mapping={
* "social_work_evaluation"=Evaluation::class
* })
*/
class Evaluation
{
@@ -14,21 +18,25 @@ class Evaluation
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Serializer\Groups({"read"})
*/
private $id;
/**
* @ORM\Column(type="json")
* @Serializer\Groups({"read"})
*/
private $title = [];
/**
* @ORM\Column(type="dateinterval", nullable=true, options={"default": null})
* @Serializer\Groups({"read"})
*/
private $delay;
/**
* @ORM\Column(type="dateinterval", nullable=true, options={"default": null})
* @Serializer\Groups({"read"})
*/
private $notificationDelay;