public function newHistory($bDraft = false) { $oHistory = new LanguageObjectHistory(); $oHistory->setObjectId($this->getObjectId()); $oHistory->setLanguageId($this->getLanguageId()); $oHistory->setData($this->getData()); $this->setHasDraft($bDraft); return $oHistory; }