ssossossosso

Forums

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

This topic contains 1 reply, has 2 voices, and was last updated by Mike Kudelya Mike Kudelya 7 months, 3 weeks ago.

  • Creator
    Topic
  • #30393

    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
  • #30888
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Role functions you can find in abstract class.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.