setName('cc_playout_history_template'); $this->setPhpName('CcPlayoutHistoryTemplate'); $this->setClassname('CcPlayoutHistoryTemplate'); $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_playout_history_template_id_seq'); // columns $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); $this->addColumn('name', 'DbName', 'VARCHAR', true, 128, null); $this->addColumn('type', 'DbType', 'VARCHAR', true, 35, null); // validators } // initialize() /** * Build the RelationMap objects for this table relationships */ public function buildRelations() { $this->addRelation('CcPlayoutHistoryTemplateField', 'CcPlayoutHistoryTemplateField', RelationMap::ONE_TO_MANY, array('id' => 'template_id', ), 'CASCADE', null, 'CcPlayoutHistoryTemplateFields'); $this->addRelation('ThirdPartyTrackReferences', 'ThirdPartyTrackReferences', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null, 'ThirdPartyTrackReferencess'); } // buildRelations() } // CcPlayoutHistoryTemplateTableMap