I am trying to use bjy-authorize, zfcUser and zfc-user-doctrine-orm in ZF2. I installed all module regarding to the manual. To use bjyAuthorize with doctrine, i used this tutorial https://github.com/bjyoungblood/BjyAuthorize/pull/62
How can i create new roles and how can i link them to the users?
The tutorial above uses this to configure the role_providers:
'BjyAuthorize\Provider\Role\DoctrineEntity' => array(
'role_entity_class' => 'Material\Entity\Role',
),
In some other config files for BjyAuthorize this is done with
// this will load roles from the user_role table in a database
// format: user_role(role_id(varchar), parent(varchar))
'BjyAuthorize\Provider\Role\Doctrine' => array(
'table' => 'user_role',
'role_id_field' => 'role_id',
'parent_role_field' => 'parent',
),
What is the difference between these configurations?
Thanks!