/** * Extension of the Abstract Record to delete an item. * * @return void */ public function delete() { $moduleId = Phprojekt_Module::getId($this->getModelName()); $this->deleteUploadFiles(); $this->_history->saveFields($this, 'delete'); $this->_search->deleteObjectItem($this); $this->_rights->saveRights($moduleId, $this->id, array()); parent::delete(); }
/** * Test empty call */ public function testEmptyObject() { $history = new Phprojekt_History(array('db' => $this->sharedFixture)); $this->setExpectedException('Exception'); $history->saveFields('', 'add'); }