Add prefix to column name for user api key for the join table #194

This commit is contained in:
Korina Cordero 2019-03-19 04:39:01 -04:00
parent 3d5ca1e522
commit eeffdb981a

View file

@ -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;