setName('cc_pref'); $this->setPhpName('CcPref'); $this->setClassname('CcPref'); $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_pref_id_seq'); // columns $this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null); $this->addForeignKey('SUBJID', 'Subjid', 'INTEGER', 'cc_subjs', 'ID', false, null, null); $this->addColumn('KEYSTR', 'Keystr', 'VARCHAR', false, 255, null); $this->addColumn('VALSTR', 'Valstr', 'LONGVARCHAR', false, null, null); // validators } // initialize() /** * Build the RelationMap objects for this table relationships */ public function buildRelations() { $this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('subjid' => 'id', ), 'CASCADE', null); } // buildRelations() } // CcPrefTableMap