You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Symfony\Component\Security\Core\Role\RoleInterface is deprecated, there is no possibility to create a Role entity anymore. Symfony\Component\Security\Core\Role\Role::$role is private and extending the Role class doesn't allow to add mapping to that property.
I suggest making $role protected. If I am not mistaken this won't break existing child classes.
The text was updated successfully, but these errors were encountered:
By the way, there is a proposal to also deprecate the entire Role class in Symfony 3.4 (see #22048). So you will probably be better off by using strings as roles instead.
Since
Symfony\Component\Security\Core\Role\RoleInterface
is deprecated, there is no possibility to create a Role entity anymore.Symfony\Component\Security\Core\Role\Role::$role
is private and extending theRole
class doesn't allow to add mapping to that property.I suggest making
$role
protected. If I am not mistaken this won't break existing child classes.The text was updated successfully, but these errors were encountered: