1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- class CcBlockcontentsTableMap extends TableMap {
-
- const CLASS_NAME = 'airtime.map.CcBlockcontentsTableMap';
-
- public function initialize()
- {
-
- $this->setName('cc_blockcontents');
- $this->setPhpName('CcBlockcontents');
- $this->setClassname('CcBlockcontents');
- $this->setPackage('airtime');
- $this->setUseIdGenerator(true);
- $this->setPrimaryKeyMethodInfo('cc_blockcontents_id_seq');
-
- $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null);
- $this->addForeignKey('BLOCK_ID', 'DbBlockId', 'INTEGER', 'cc_block', 'ID', false, null, null);
- $this->addForeignKey('FILE_ID', 'DbFileId', 'INTEGER', 'cc_files', 'ID', false, null, null);
- $this->addColumn('POSITION', 'DbPosition', 'INTEGER', false, null, null);
- $this->addColumn('TRACKOFFSET', 'DbTrackOffset', 'REAL', true, null, 0);
- $this->addColumn('CLIPLENGTH', 'DbCliplength', 'VARCHAR', false, null, '00:00:00');
- $this->addColumn('CUEIN', 'DbCuein', 'VARCHAR', false, null, '00:00:00');
- $this->addColumn('CUEOUT', 'DbCueout', 'VARCHAR', false, null, '00:00:00');
- $this->addColumn('FADEIN', 'DbFadein', 'TIME', false, null, '00:00:00');
- $this->addColumn('FADEOUT', 'DbFadeout', 'TIME', false, null, '00:00:00');
-
- }
-
- public function buildRelations()
- {
- $this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null);
- $this->addRelation('CcBlock', 'CcBlock', RelationMap::MANY_TO_ONE, array('block_id' => 'id', ), 'CASCADE', null);
- }
-
- public function getBehaviors()
- {
- return array(
- 'aggregate_column_relation' => array('foreign_table' => 'cc_block', 'update_method' => 'updateDbLength', ),
- );
- }
- }
|