ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums Oro Community How to set Roles of user entity due to deprecated code ?

This topic contains 1 reply, has 2 voices, and was last updated by Mike Kudelya Mike Kudelya 1 year, 5 months ago.

  • Creator
    Topic
  • #53382

    vladimir.petrov
    Participant

    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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No
ssossossosso