예제 #1
0
파일: User.php 프로젝트: OneTimeCZ/DofE
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aImage) {
         $this->aImage->removeUser($this);
     }
     if (null !== $this->aMember) {
         $this->aMember->removeUser($this);
     }
     $this->id = null;
     $this->id_member = null;
     $this->username = null;
     $this->member_from = null;
     $this->url = null;
     $this->email = null;
     $this->email_confirmed_at = null;
     $this->email_confirm_token = null;
     $this->email_change_token = null;
     $this->password = null;
     $this->password_reset_token = null;
     $this->permissions = null;
     $this->signin_count = null;
     $this->id_image = null;
     $this->last_signin_at = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }