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
Post a Comment