mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-10 14:18:25 +00:00
Apply rector rules: add annotation for doctrine mapping
This commit is contained in:
@@ -21,14 +21,6 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
||||
|
||||
/**
|
||||
* PostalCode.
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
#[ORM\Entity]
|
||||
#[ORM\HasLifecycleCallbacks]
|
||||
@@ -62,13 +54,12 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
|
||||
private ?string $code = null;
|
||||
|
||||
#[Groups(['write', 'read'])]
|
||||
#[ORM\ManyToOne(targetEntity: \Chill\MainBundle\Entity\Country::class)]
|
||||
#[ORM\ManyToOne(targetEntity: Country::class)]
|
||||
private ?Country $country = null;
|
||||
|
||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATETIME_IMMUTABLE, nullable: true, options: ['default' => null])]
|
||||
private ?\DateTimeImmutable $deletedAt = null;
|
||||
|
||||
|
||||
#[Groups(['write', 'read'])]
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
|
||||
|
||||
Reference in New Issue
Block a user