mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
Person: remove useless serialisation groups
This commit is contained in:
parent
88e9a96e0e
commit
84478c651e
@ -38,7 +38,6 @@ use Doctrine\Common\Collections\Criteria;
|
|||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Symfony\Component\Serializer\Annotation\DiscriminatorMap;
|
use Symfony\Component\Serializer\Annotation\DiscriminatorMap;
|
||||||
use Symfony\Component\Serializer\Annotation\Groups;
|
|
||||||
use Symfony\Component\Validator\Constraints as Assert;
|
use Symfony\Component\Validator\Constraints as Assert;
|
||||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
||||||
use function count;
|
use function count;
|
||||||
@ -153,7 +152,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
*
|
*
|
||||||
* @ORM\Column(type="date", nullable=true)
|
* @ORM\Column(type="date", nullable=true)
|
||||||
* @Birthdate
|
* @Birthdate
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private $birthdate;
|
private $birthdate;
|
||||||
|
|
||||||
@ -202,7 +200,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
* sf4 check: option inversedBy="birthsIn" return error mapping !!
|
* sf4 check: option inversedBy="birthsIn" return error mapping !!
|
||||||
*
|
*
|
||||||
* @ORM\JoinColumn(nullable=true)
|
* @ORM\JoinColumn(nullable=true)
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private $countryOfBirth;
|
private $countryOfBirth;
|
||||||
|
|
||||||
@ -240,7 +237,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
* @Assert\Date
|
* @Assert\Date
|
||||||
* @Assert\GreaterThanOrEqual(propertyPath="birthdate")
|
* @Assert\GreaterThanOrEqual(propertyPath="birthdate")
|
||||||
* @Assert\LessThanOrEqual("today")
|
* @Assert\LessThanOrEqual("today")
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private ?DateTimeImmutable $deathdate = null;
|
private ?DateTimeImmutable $deathdate = null;
|
||||||
|
|
||||||
@ -253,7 +249,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
* @Assert\Email(
|
* @Assert\Email(
|
||||||
* checkMX=true
|
* checkMX=true
|
||||||
* )
|
* )
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private $email = '';
|
private $email = '';
|
||||||
|
|
||||||
@ -267,7 +262,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
* @Assert\Length(
|
* @Assert\Length(
|
||||||
* max=255,
|
* max=255,
|
||||||
* )
|
* )
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private $firstName;
|
private $firstName;
|
||||||
|
|
||||||
@ -288,7 +282,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
*
|
*
|
||||||
* @ORM\Column(type="string", length=9, nullable=true)
|
* @ORM\Column(type="string", length=9, nullable=true)
|
||||||
* @Assert\NotNull(message="The gender must be set")
|
* @Assert\NotNull(message="The gender must be set")
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private $gender;
|
private $gender;
|
||||||
|
|
||||||
@ -346,7 +339,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
*
|
*
|
||||||
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\MaritalStatus")
|
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\MaritalStatus")
|
||||||
* @ORM\JoinColumn(nullable=true)
|
* @ORM\JoinColumn(nullable=true)
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private $maritalStatus;
|
private $maritalStatus;
|
||||||
|
|
||||||
@ -354,7 +346,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
* Comment on marital status.
|
* Comment on marital status.
|
||||||
*
|
*
|
||||||
* @ORM\Embedded(class="Chill\MainBundle\Entity\Embeddable\CommentEmbeddable", columnPrefix="maritalStatusComment_")
|
* @ORM\Embedded(class="Chill\MainBundle\Entity\Embeddable\CommentEmbeddable", columnPrefix="maritalStatusComment_")
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private CommentEmbeddable $maritalStatusComment;
|
private CommentEmbeddable $maritalStatusComment;
|
||||||
|
|
||||||
@ -365,7 +356,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
*
|
*
|
||||||
* @ORM\Column(type="date", nullable=true)
|
* @ORM\Column(type="date", nullable=true)
|
||||||
* @Assert\Date
|
* @Assert\Date
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private ?DateTime $maritalStatusDate = null;
|
private ?DateTime $maritalStatusDate = null;
|
||||||
|
|
||||||
@ -388,7 +378,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
* @PhonenumberConstraint(
|
* @PhonenumberConstraint(
|
||||||
* type="mobile",
|
* type="mobile",
|
||||||
* )
|
* )
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private string $mobilenumber = '';
|
private string $mobilenumber = '';
|
||||||
|
|
||||||
@ -402,7 +391,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
* sf4 check: option inversedBy="nationals" return error mapping !!
|
* sf4 check: option inversedBy="nationals" return error mapping !!
|
||||||
*
|
*
|
||||||
* @ORM\JoinColumn(nullable=true)
|
* @ORM\JoinColumn(nullable=true)
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private $nationality;
|
private $nationality;
|
||||||
|
|
||||||
@ -412,7 +400,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
* @var int
|
* @var int
|
||||||
*
|
*
|
||||||
* @ORM\Column(type="integer", nullable=true)
|
* @ORM\Column(type="integer", nullable=true)
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private ?int $numberOfChildren = null;
|
private ?int $numberOfChildren = null;
|
||||||
|
|
||||||
@ -449,7 +436,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
* @PhonenumberConstraint(
|
* @PhonenumberConstraint(
|
||||||
* type="landline",
|
* type="landline",
|
||||||
* )
|
* )
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private string $phonenumber = '';
|
private string $phonenumber = '';
|
||||||
|
|
||||||
@ -459,7 +445,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
* @var string
|
* @var string
|
||||||
*
|
*
|
||||||
* @ORM\Column(type="string", length=255, name="place_of_birth")
|
* @ORM\Column(type="string", length=255, name="place_of_birth")
|
||||||
* @Groups({"docgen:read"})
|
|
||||||
*/
|
*/
|
||||||
private $placeOfBirth = '';
|
private $placeOfBirth = '';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user