Ojs\JournalBundle\Entity\JournalUser::removeRole PHP Method

removeRole() public method

public removeRole ( Role $role )
$role Ojs\UserBundle\Entity\Role
    public function removeRole(Role $role)
    {
        if ($this->roles->contains($role)) {
            $this->roles->removeElement($role);
        }
        return $this;
    }