Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums 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 7 years, 2 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #24524

    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)
  • Author
    Replies
  • #24525

    Mike Kudelya
    Participant

    Role functions you can find in abstract class.

Viewing 1 replies (of 1 total)

The forum ‘Oro Community’ is closed to new topics and replies.

Back to top