mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
Apply rector rules: add annotation for doctrine mapping
This commit is contained in:
@@ -15,7 +15,6 @@ use Chill\ThirdPartyBundle\Repository\ThirdPartyProfessionRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Serializer\Annotation as Serializer;
|
||||
|
||||
|
||||
#[Serializer\DiscriminatorMap(typeProperty: 'type', mapping: ['third_party_profession' => ThirdPartyProfession::class])]
|
||||
#[ORM\Entity(repositoryClass: ThirdPartyProfessionRepository::class)]
|
||||
#[ORM\Table(name: 'chill_3party.party_profession')]
|
||||
@@ -25,7 +24,6 @@ class ThirdPartyProfession
|
||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::BOOLEAN)]
|
||||
private bool $active = true;
|
||||
|
||||
|
||||
#[Serializer\Groups(['docgen:read', 'read', 'write'])]
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
|
Reference in New Issue
Block a user