Newscoop\Entity\User::exists PHP Méthode

exists() public méthode

Check if the user exists Test if there is set an id
Deprecation: legacy from frontend controllers
public exists ( ) : boolean
Résultat boolean
    public function exists()
    {
        return !is_null($this->id);
    }

Usage Example

 public function exists()
 {
     $this->__load();
     return parent::exists();
 }