ssossossossosso

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

  • Creator
    Topic
  • #21944

    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
  • #21945

    Mike Kudelya
    Moderator

    Role functions you can find in abstract class.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.