2009-05-12 12:25:42 +00:00

49 lines
2.9 KiB
PHP

<?php
/**
* BaseCommandes
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @property integer $id
* @property string $reference
* @property enum $servicespeed
* @property enum $orderstate
* @property date $dateordered
* @property date $datecompleted
* @property date $datedue
* @property string $companyproductidentifier
* @property string $sessionid
* @property string $transactionidentifier
* @property string $user
* @property timestamp $created_at
* @property timestamp $updated_at
* @property integer $country_id
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @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));
}
}