Roles in Sonata Admin
问题 Good day. I can not understand how in sonata admin bundle to add roles to users. Namely, it is necessary that the user with a specific role seen in adminpanel only one entity and only worked with her. For now, there is only one role - it ROLE_SONATA_ADMIN, which gives access to the whole adminpanel. On official site found just such an example : security: ... role_hierarchy: # for convenience, I decided to gather Sonata roles here ROLE_SONATA_FOO_READER: - ROLE_SONATA_ADMIN_DEMO_FOO_LIST -