/** * Actions done when a typocriteria is deleted from the database * * @return nothing **/ function cleanDBonPurge() { $temp1 = new PluginTypologyTypologyCriteriaDefinition(); $temp1->deleteByCriteria(array('plugin_typology_typologycriterias_id' => $this->fields['id'])); }