mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Specify the length of VARCHAR columns
Platforms in the MySQL/MariaDB family require that.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user