Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit b60572a

Browse files
author
Teddy Roncin
committed
🐛 (fixture) GroupSeeder was crashing when updating database
groups is a keyword in mysql, so I replaced the table name in the code (App\Entity\Group) by `groups`. Using `...` tells mysql that the content has to be evaluated, and is not a keyword
1 parent 5e76390 commit b60572a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entity/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* A Group of User for friends, Course... Only user can see it, only god can judge me.
2727
*
2828
* @ORM\Entity(repositoryClass=GroupRepository::class)
29-
* @ORM\Table(name="groups")
29+
* @ORM\Table(name="`groups`")
3030
* @ORM\EntityListeners({"App\Doctrine\GroupSetAdminAndMemberListener"})
3131
*/
3232
#[

0 commit comments

Comments
 (0)