Add prefix to column name for user api key for the join table #194
This commit is contained in:
parent
3d5ca1e522
commit
eeffdb981a
1 changed files with 3 additions and 1 deletions
|
|
@ -41,7 +41,9 @@ class User implements UserInterface
|
|||
// roles
|
||||
/**
|
||||
* @ORM\ManyToMany(targetEntity="Role", inversedBy="users")
|
||||
* @ORM\JoinTable(name="api_user_role")
|
||||
* @ORM\JoinTable(name="api_user_role",
|
||||
* joinColumns={@JoinColumn(name="user_api_key", referencedColumnName="api_key")},
|
||||
* inverseJoinColumns={@JoinColumn(name="role_id", referencedColumnName="id")})
|
||||
*/
|
||||
protected $roles;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue