findOneByEvtSpecVal($evt_spec->getValue()); if ($aed == NULL) { $aed = new AlarmEventDescriptor(); $aed->setName($evt_spec); $aed->setEvtSpec($evt_spec); $aed->save(); } $aed_id = $aed->getId(); } } ?>