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