setName('cc_timestamp'); $this->setPhpName('CcTimestamp'); $this->setClassname('CcTimestamp'); $this->setPackage('airtime'); $this->setUseIdGenerator(true); $this->setPrimaryKeyMethodInfo('cc_timestamp_id_seq'); // columns $this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null); $this->addColumn('TIMESTAMP', 'DbTimestamp', 'TIMESTAMP', true, null, null); // validators } // initialize() /** * Build the RelationMap objects for this table relationships */ public function buildRelations() { $this->addRelation('CcListenerCount', 'CcListenerCount', RelationMap::ONE_TO_MANY, array('id' => 'timestamp_id', ), 'CASCADE', null); } // buildRelations() } // CcTimestampTableMap