Update table names of role and user to match master #746

This commit is contained in:
Ramon Gutierrez 2023-06-23 13:14:41 +08:00
parent 87f77c9b9c
commit 7beeef104c
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/** /**
* @ORM\Entity * @ORM\Entity
* @ORM\Table(name="user_role") * @ORM\Table(name="role")
* @UniqueEntity("id") * @UniqueEntity("id")
* @UniqueEntity("name") * @UniqueEntity("name")
*/ */

View file

@ -12,7 +12,7 @@ use Serializable;
/** /**
* @ORM\Entity * @ORM\Entity
* @ORM\Table(name="user_user") * @ORM\Table(name="user")
* @UniqueEntity("username") * @UniqueEntity("username")
* @UniqueEntity("email") * @UniqueEntity("email")
*/ */
@ -39,7 +39,7 @@ class User extends BaseUser implements Serializable
/** /**
* @ORM\ManyToMany(targetEntity="Role", inversedBy="users") * @ORM\ManyToMany(targetEntity="Role", inversedBy="users")
* @ORM\JoinTable(name="user_user_role") * @ORM\JoinTable(name="user_role")
*/ */
protected $roles; protected $roles;