/** * Called when the model type of a lexem changes from VT to something else. * Only deletes participles that do not have their own definitions. */ public function deleteParticiple() { $infl = Inflection::loadParticiple(); $adjModels = array(); foreach ($this->getLexemModels() as $lm) { if ($lm->modelType == 'V' || $lm->modelType == 'VT') { $pm = ParticipleModel::get_by_verbModel($lm->modelNumber); $adjModels[] = $pm->adjectiveModel; } } $this->_deleteDependentModels($infl->id, 'A', $adjModels); }
public static function loadByVerbModel($verbModel) { return ParticipleModel::get_by_verbModel(addslashes($verbModel)); }