206 lines
6.7 KiB
PHP
206 lines
6.7 KiB
PHP
<?php
|
|
// Connection Component Binding
|
|
Doctrine_Manager::getInstance()->bindComponent('Commandes', 'graydon');
|
|
|
|
/**
|
|
* BaseCommandes
|
|
*
|
|
* This class has been auto-generated by the Doctrine ORM Framework
|
|
*
|
|
* @property integer $id
|
|
* @property string $reference
|
|
* @property enum $servicespeed
|
|
* @property string $prix
|
|
* @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 string $mode
|
|
* @property timestamp $created_at
|
|
* @property timestamp $updated_at
|
|
* @property integer $country_id
|
|
*
|
|
* @package ##PACKAGE##
|
|
* @subpackage ##SUBPACKAGE##
|
|
* @author ##NAME## <##EMAIL##>
|
|
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
|
|
*/
|
|
abstract class BaseCommandes extends Doctrine_Record
|
|
{
|
|
public function setTableDefinition()
|
|
{
|
|
$this->setTableName('commandes');
|
|
$this->hasColumn('id', 'integer', 4, array(
|
|
'type' => 'integer',
|
|
'length' => 4,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => true,
|
|
'autoincrement' => true,
|
|
));
|
|
$this->hasColumn('reference', 'string', 100, array(
|
|
'type' => 'string',
|
|
'length' => 100,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('servicespeed', 'enum', 19, array(
|
|
'type' => 'enum',
|
|
'length' => 19,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'values' =>
|
|
array(
|
|
0 => 'Normal',
|
|
1 => 'Express',
|
|
2 => 'Superflash',
|
|
3 => 'Immediate',
|
|
4 => 'ImmediateWithUpdate',
|
|
5 => 'Unknown',
|
|
6 => 'Delayed',
|
|
),
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('prix', 'string', 100, array(
|
|
'type' => 'string',
|
|
'length' => 100,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('orderstate', 'enum', 11, array(
|
|
'type' => 'enum',
|
|
'length' => 11,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'values' =>
|
|
array(
|
|
0 => 'Completed',
|
|
1 => 'Assigned',
|
|
2 => 'InError',
|
|
3 => 'Initialised',
|
|
4 => 'Delivered',
|
|
5 => 'Notified',
|
|
6 => 'ReCompleted',
|
|
7 => 'SendError',
|
|
8 => 'Unlinked',
|
|
),
|
|
'primary' => false,
|
|
'notnull' => false,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('dateordered', 'date', null, array(
|
|
'type' => 'date',
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('datecompleted', 'date', null, array(
|
|
'type' => 'date',
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('datedue', 'date', null, array(
|
|
'type' => 'date',
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('companyproductidentifier', 'string', 100, array(
|
|
'type' => 'string',
|
|
'length' => 100,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('sessionid', 'string', 100, array(
|
|
'type' => 'string',
|
|
'length' => 100,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('transactionidentifier', 'string', 100, array(
|
|
'type' => 'string',
|
|
'length' => 100,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('user', 'string', 100, array(
|
|
'type' => 'string',
|
|
'length' => 100,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('mode', 'string', 10, array(
|
|
'type' => 'string',
|
|
'length' => 10,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('created_at', 'timestamp', null, array(
|
|
'type' => 'timestamp',
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'default' => '0000-00-00 00:00:00',
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('updated_at', 'timestamp', null, array(
|
|
'type' => 'timestamp',
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'default' => '0000-00-00 00:00:00',
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('country_id', 'integer', 4, array(
|
|
'type' => 'integer',
|
|
'length' => 4,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
}
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
|
|
}
|
|
} |