Ejemplo n.º 1
0
 function delete()
 {
     InflectedForm::delete_all_by_lexemModelId($this->id);
     LexemSource::delete_all_by_lexemModelId($this->id);
     // delete_all_by_lexemModelId doesn't work for FullTextIndex because it doesn't have an ID column
     Model::factory('FullTextIndex')->where('lexemModelId', $this->id)->delete_many();
     parent::delete();
 }