mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-31 12:03:48 +00:00
Apply rector rules: add annotation for doctrine mapping
This commit is contained in:
@@ -15,7 +15,6 @@ use Chill\MainBundle\Doctrine\Model\Point;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Serializer\Annotation\Groups;
|
||||
|
||||
|
||||
#[ORM\Entity]
|
||||
#[ORM\HasLifecycleCallbacks]
|
||||
#[ORM\Table(name: 'chill_main_address_reference')]
|
||||
@@ -39,7 +38,6 @@ class AddressReference
|
||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATETIME_IMMUTABLE, nullable: true)]
|
||||
private ?\DateTimeImmutable $deletedAt = null;
|
||||
|
||||
|
||||
#[Groups(['read'])]
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
@@ -58,7 +56,7 @@ class AddressReference
|
||||
private ?Point $point = null;
|
||||
|
||||
#[Groups(['read'])]
|
||||
#[ORM\ManyToOne(targetEntity: \Chill\MainBundle\Entity\PostalCode::class)]
|
||||
#[ORM\ManyToOne(targetEntity: PostalCode::class)]
|
||||
private ?PostalCode $postcode = null;
|
||||
|
||||
#[Groups(['read'])]
|
||||
|
Reference in New Issue
Block a user