Apply rector rules: add annotation for doctrine mapping

This commit is contained in:
2024-04-05 00:19:30 +02:00
parent 72016e1a21
commit a3f775a69b
23 changed files with 39 additions and 93 deletions

View File

@@ -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