This topic contains 1 reply, has 2 voices, and was last updated by Mike Kudelya 7 years, 2 months ago.
- Topic
Hi,
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?
Thanks.
The forum ‘Oro Community’ is closed to new topics and replies.