I can add, update and delete a record in the User table but I cannot add or update to the collection that is related to that user record.
When I delete a user all the roles related to that user get deleted too (which is what I expected it to do).
Yet, why can I not add or update the collection (roles) of a user?
The relationship of User to Role table is one-to-many and is set to lazy=true.
Can someone help? I just want to be able to add a new user and update an existing user such that the roles will get added or updated too.
Thank you


Reply With Quote