Specify the length of VARCHAR columns

Platforms in the MySQL/MariaDB family require that.
This commit is contained in:
Grégoire Paris
2025-10-18 14:26:12 +02:00
parent 8616a98023
commit 8c92903430

View File

@@ -67,7 +67,7 @@ enum GH12063Code: string
class GH12063Association
{
#[Id]
#[Column]
#[Column(length: 3)]
public GH12063Code $code;
}
@@ -80,6 +80,6 @@ class GH12063Entity
public int|null $id = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(referencedColumnName: 'code')]
#[ORM\JoinColumn(referencedColumnName: 'code', options: ['length' => 3])]
public GH12063Association $association;
}