Skip to content

Commit 5f6896a

Browse files
committed
Avoid using LIBRARY as table name (#12170)
It is a reserved word since MySQL 9.2: https://dev.mysql.com/doc/refman/9.2/en/create-library.html
1 parent 930a790 commit 5f6896a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Tests/Models/Enums/Library.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
use Doctrine\ORM\Mapping\GeneratedValue;
1212
use Doctrine\ORM\Mapping\Id;
1313
use Doctrine\ORM\Mapping\OneToMany;
14+
use Doctrine\ORM\Mapping\Table;
1415

1516
#[Entity]
17+
#[Table('`library`')]
1618
class Library
1719
{
1820
#[Id]

0 commit comments

Comments
 (0)