Skip to content

Commit e9a7fd6

Browse files
authored
add @Orm\Table(name="fos_user") to user entity
this is to not use the default protected word User for an sql table https://symfony.com/doc/master/bundles/FOSUserBundle/index.html#a-doctrine-orm-user-class
1 parent fed16ee commit e9a7fd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/fosuser-bundle.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
5959
6060
/**
6161
* @ORM\Entity
62+
* @ORM\Table(name="fos_user")
6263
* @ApiResource(
6364
* normalizationContext={"groups"={"user", "user:read"}},
6465
* denormalizationContext={"groups"={"user", "user:write"}}

0 commit comments

Comments
 (0)