コード例 #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();
 }
コード例 #2
0
ファイル: LexemSource.php プロジェクト: florinp/dexonline
 public static function getForLexem($lexem)
 {
     $lexemSources = LexemSource::get_all_by_lexemId($lexem->id);
     return util_objectProperty($lexemSources, 'sourceId');
 }