Newscoop\Entity\User::exists PHP Метод

exists() публичный Метод

Check if the user exists Test if there is set an id
Устаревший: legacy from frontend controllers
public exists ( ) : boolean
Результат boolean
    public function exists()
    {
        return !is_null($this->id);
    }

Usage Example

Пример #1
0
 public function exists()
 {
     $this->__load();
     return parent::exists();
 }