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(); }
public static function getForLexem($lexem) { $lexemSources = LexemSource::get_all_by_lexemId($lexem->id); return util_objectProperty($lexemSources, 'sourceId'); }