setName('third_party_track_references'); $this->setPhpName('ThirdPartyTrackReferences'); $this->setClassname('ThirdPartyTrackReferences'); $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('third_party_track_references_id_seq'); // columns $this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null); $this->addColumn('service', 'DbService', 'VARCHAR', true, 512, null); $this->addColumn('foreign_id', 'DbForeignId', 'INTEGER', true, null, null); $this->addForeignKey('file_id', 'DbFileId', 'INTEGER', 'cc_playout_history_template', 'id', true, null, null); $this->addColumn('status', 'DbStatus', 'VARCHAR', true, 256, null); // validators } // initialize() /** * Build the RelationMap objects for this table relationships */ public function buildRelations() { $this->addRelation('CcPlayoutHistoryTemplate', 'CcPlayoutHistoryTemplate', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null); } // buildRelations() } // ThirdPartyTrackReferencesTableMap