/** * 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->aUser) { $this->aUser->removeLyric($this); } $this->id = null; $this->title = null; $this->text = null; $this->text_bg = null; $this->text_bg_added = null; $this->extra_info = null; $this->send_by = null; $this->cache_title_short = null; $this->views = null; $this->popularity = null; $this->votes_count = null; $this->video_youtube = null; $this->video_vbox7 = null; $this->video_metacafe = null; $this->download = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }