Forums

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

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

  • 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
    Mike Kudelya
    Participant

    Role functions you can find in abstract class.

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
ssossossossossosso