// src/Rapsys/UserBundle/Entity/Group.php
namespace Rapsys\UserBundle\Entity;
-class Group extends \Symfony\Component\Security\Core\Role\Role {
+class Group {
/**
* @var integer
*/
* Constructor
* @param string $role The role name
*/
- public function __construct($role) {
+ public function __construct(string $role) {
$this->role = (string) $role;
$this->users = new \Doctrine\Common\Collections\ArrayCollection();
}
return $this->role;
}
+ /**
+ * Returns a string representation of the role.
+ *
+ * @xxx Replace the deprecated "extends \Symfony\Component\Security\Core\Role\Role"
+ *
+ * @return string
+ */
+ public function __toString(): string {
+ return $this->role;
+ }
+
/**
* Set created
*