in the User entity I see the following:
* Directly set the Collection of Roles.
* @deprecated since 1.8
* @param Collection $collection
* @return User
* @throws \InvalidArgumentException
public function setRolesCollection($collection)
So what is the best way of setting and getting roles?
You must be logged in to reply to this topic.