Explorar o código

fix toString method

Thomas Rabaix %!s(int64=14) %!d(string=hai) anos
pai
achega
d9db239fcf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Entity/BaseUser.php

+ 1 - 1
Entity/BaseUser.php

@@ -31,6 +31,6 @@ class BaseUser extends AbstractedUser
 
     public function __toString()
     {
-        return $this->getUsername();
+        return $this->getUsername() ?: '-';
     }
 }