php - symfony db and doctrine user structure -


i have site 2 types of users: searchers , workers.

my firewall on site , both of types the same provider (same table in db).

the problem there 1 entity them -> site_users, , diff column on db decides role.

but searcher has 1 many variable, , worker has other 1 many variable.

i cant define them in main class because infect other user well

i found solution , it's not problem.

i add parent entity -> user

2 varibales: searcher & employer

each of them 1 one relationship user

if want fetch them call 1 needed, dont interrupt each other.


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -