Update auth table names to new standard, fix model association config for acl #730
This commit is contained in:
parent
876722ebe7
commit
2a0ca3b9ea
4 changed files with 6 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
catalyst_auth:
|
||||
main:
|
||||
user_entity: "Catalyst\\UserBundle\\Entity\\User"
|
||||
user_entity: "App\\Entity\\User"
|
||||
acl_data:
|
||||
- id: dashboard
|
||||
label: Dashboard Access
|
||||
|
|
@ -591,7 +591,7 @@ catalyst_auth:
|
|||
label: Delete
|
||||
|
||||
api:
|
||||
user_entity: "App\\Entity\\ApiUser"
|
||||
user_entity: "Catalyst\\ApiBundle\\Entity\\User"
|
||||
acl_data:
|
||||
- id: api_test
|
||||
label: Test
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ security:
|
|||
lifetime: 604800
|
||||
path: /
|
||||
user_checker: Catalyst\AuthBundle\Service\UserChecker
|
||||
switch_user: { role: ROLE_SUPER_ADMIN }
|
||||
|
||||
# activate different ways to authenticate
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
|||
|
||||
/**
|
||||
* @ORM\Entity
|
||||
* @ORM\Table(name="role")
|
||||
* @ORM\Table(name="user_role")
|
||||
* @UniqueEntity("id")
|
||||
* @UniqueEntity("name")
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ use Serializable;
|
|||
|
||||
/**
|
||||
* @ORM\Entity
|
||||
* @ORM\Table(name="user")
|
||||
* @ORM\Table(name="user_user")
|
||||
* @UniqueEntity("username")
|
||||
* @UniqueEntity("email")
|
||||
*/
|
||||
|
|
@ -39,7 +39,7 @@ class User extends BaseUser implements Serializable
|
|||
|
||||
/**
|
||||
* @ORM\ManyToMany(targetEntity="Role", inversedBy="users")
|
||||
* @ORM\JoinTable(name="user_role")
|
||||
* @ORM\JoinTable(name="user_user_role")
|
||||
*/
|
||||
protected $roles;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue