예제 #1
0
파일: Games.php 프로젝트: nirkbirk/site
 /**
  * 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->aCompaniesRelatedByPublisherId) {
         $this->aCompaniesRelatedByPublisherId->removeGamesRelatedByPublisherId($this);
     }
     if (null !== $this->aCompaniesRelatedByDeveloperId) {
         $this->aCompaniesRelatedByDeveloperId->removeGamesRelatedByDeveloperId($this);
     }
     $this->id = null;
     $this->name = null;
     $this->title = null;
     $this->description = null;
     $this->publisher_id = null;
     $this->developer_id = null;
     $this->gb_id = null;
     $this->gb_url = null;
     $this->gb_image = null;
     $this->gb_thumb = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }