I want to create a 2 tables where one will have user info and other list of authorities that user has on a site.I want to use join table to connect them.
I want authorities table to just have 2 constants "ROLE_USER" and "ROLE_ADMIN" so that in "user_authority" table in "authority_id" column every user would either have either 1 or 2 depending on a role id,but what i don't know is how to configure entity relationship so that when i add user he is connected to that authority id.