I
I
Igor Chernyshev2012-11-23 09:56:13
symfony
Igor Chernyshev, 2012-11-23 09:56:13

FOSUserBundle. Storing roles in a database?

Good afternoon.
Has anyone encountered the problem of storing roles in a database for later management? If yes, how did you do it? A cursory Google search turned up nothing.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vyacheslav Slinko, 2012-11-23
@KeepYourMind

As far as I remember, FOSUserBundle already has ready-made entities and connections between them, doesn't it?

B
Boris, 2012-11-23
@zIs

I briefly described the solution here stackoverflow.com/a/11916488/1517230
in addition, you need to override the methods for working with roles in the enity User in the FOSUserBundle - to work with them as with regular collections

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question