public function getRoles()
{
return $this->roles;
}
public function getRoles() { $user = $this->getUser(); if ($user instanceof UserInterface) { return $this->getUserRoles($user); } return parent::getRoles(); }