mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
Apply rector rules: add annotation for doctrine mapping
This commit is contained in:
@@ -28,11 +28,9 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
||||
#[ORM\Table(name: 'country')]
|
||||
class Country
|
||||
{
|
||||
/**
|
||||
* @Context({"is-translatable": true}, groups={"docgen:read"})
|
||||
*/
|
||||
#[Groups(['read', 'docgen:read'])]
|
||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::STRING, length: 3)]
|
||||
#[Context(['is-translatable' => true], groups: ['docgen:read'])]
|
||||
private string $countryCode = '';
|
||||
|
||||
|
||||
@@ -45,11 +43,10 @@ class Country
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*
|
||||
*
|
||||
* @Context({"is-translatable": true}, groups={"docgen:read"})
|
||||
*/
|
||||
#[Groups(['read', 'docgen:read'])]
|
||||
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::JSON)]
|
||||
#[Context(['is-translatable' => true], groups: ['docgen:read'])]
|
||||
private array $name = [];
|
||||
|
||||
public function getCountryCode(): string
|
||||
|
Reference in New Issue
Block a user