* @version SVN: $Id: Builder.php 5441 2009-01-30 22:58:43Z jwage $ */ abstract class BaseCommandes extends Doctrine_Record { public function setTableDefinition() { $this->setTableName('commandes'); $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'length' => 4, 'primary' => true, 'autoincrement' => true)); $this->hasColumn('reference', 'string', 100, array('type' => 'string', 'length' => 100, 'notnull' => true)); $this->hasColumn('servicespeed', 'enum', 19, array('type' => 'enum', 'length' => 19, 'values' => array(0 => 'Normal', 1 => 'Express', 2 => 'Superflash', 3 => 'Immediate', 4 => 'ImmediateWithUpdate', 5 => 'Unknown', 6 => 'Delayed'), 'notnull' => true)); $this->hasColumn('orderstate', 'enum', 11, array('type' => 'enum', 'length' => 11, 'values' => array(0 => 'Completed', 1 => 'Assigned', 2 => 'InError', 3 => 'Initialised', 4 => 'Delivered', 5 => 'Notified', 6 => 'ReCompleted'), 'notnull' => true)); $this->hasColumn('dateordered', 'date', null, array('type' => 'date', 'notnull' => true)); $this->hasColumn('datecompleted', 'date', null, array('type' => 'date', 'notnull' => true)); $this->hasColumn('datedue', 'date', null, array('type' => 'date', 'notnull' => true)); $this->hasColumn('companyproductidentifier', 'string', 100, array('type' => 'string', 'length' => 100, 'notnull' => true)); $this->hasColumn('sessionid', 'string', 100, array('type' => 'string', 'length' => 100, 'notnull' => true)); $this->hasColumn('transactionidentifier', 'string', 100, array('type' => 'string', 'length' => 100, 'notnull' => true)); $this->hasColumn('user', 'string', 100, array('type' => 'string', 'length' => 100, 'notnull' => true)); $this->hasColumn('mode', 'string', 10, array('type' => 'string', 'length' => 10, 'notnull' => true)); $this->hasColumn('created_at', 'timestamp', null, array('type' => 'timestamp', 'default' => '0000-00-00 00:00:00', 'notnull' => true)); $this->hasColumn('updated_at', 'timestamp', null, array('type' => 'timestamp', 'default' => '0000-00-00 00:00:00', 'notnull' => true)); $this->hasColumn('country_id', 'integer', 4, array('type' => 'integer', 'length' => 4, 'notnull' => true)); } }