setName('cur_alm_cond'); $this->setPhpName('CurrentAlarmCondition'); $this->setClassname('CurrentAlarmCondition'); $this->setPackage('propel'); $this->setUseIdGenerator(true); // columns $this->addPrimaryKey('id', 'Id', 'INTEGER', true, null, null); $this->addForeignKey('amo_id', 'AmoId', 'INTEGER', 'alm_man_obj', 'id', true, null, null); $this->addForeignKey('aed_id', 'AedId', 'INTEGER', 'alm_evt_dscr', 'id', true, null, null); $this->addColumn('evt_time', 'EvtTime', 'VARCHAR', true, 255, null); $this->addColumn('rec_date', 'RecDate', 'VARCHAR', true, 255, null); $this->addColumn('alm_stat', 'AlmStat', 'INTEGER', true, null, null); $this->addColumn('serv_infl', 'ServInfl', 'INTEGER', true, null, null); $this->addColumn('obs_val', 'ObsVal', 'INTEGER', false, null, null); // validators } // initialize() /** * Build the RelationMap objects for this table relationships */ public function buildRelations() { $this->addRelation('AlarmingManagedObject', 'AlarmingManagedObject', RelationMap::MANY_TO_ONE, array('amo_id' => 'id', ), null, null); $this->addRelation('AlarmEventDescriptor', 'AlarmEventDescriptor', RelationMap::MANY_TO_ONE, array('aed_id' => 'id', ), null, null); } // buildRelations() } // CurrentAlarmConditionTableMap