extranet/includes/models/sdv1/generated/BaseCommandes.php

133 lines
4.3 KiB
PHP

<?php
/**
* BaseCommandes
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @property integer $idCommande
* @property integer $idUser
* @property string $login
* @property string $emailCommande
* @property integer $siren
* @property string $refDocument
* @property string $libDocument
* @property string $typeCommande
* @property integer $statutCommande
* @property string $commentaire
* @property timestamp $dateCommande
* @property timestamp $dateReception
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 6401 2009-09-24 16:12:04Z guilhermeblanco $
*/
abstract class BaseCommandes extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('commandes');
$this->hasColumn('idCommande', 'integer', 4, array(
'type' => 'integer',
'length' => 4,
'unsigned' => 0,
'primary' => true,
'autoincrement' => true,
));
$this->hasColumn('idUser', 'integer', 4, array(
'type' => 'integer',
'length' => 4,
'unsigned' => 0,
'primary' => false,
'default' => '0',
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('login', 'string', 32, array(
'type' => 'string',
'length' => 32,
'fixed' => false,
'primary' => false,
'default' => '',
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('emailCommande', 'string', 80, array(
'type' => 'string',
'length' => 80,
'fixed' => false,
'primary' => false,
'default' => '',
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('siren', 'integer', 4, array(
'type' => 'integer',
'length' => 4,
'unsigned' => 1,
'primary' => false,
'default' => '000000000',
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('refDocument', 'string', 255, array(
'type' => 'string',
'length' => 255,
'fixed' => false,
'primary' => false,
'default' => '',
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('libDocument', 'string', 255, array(
'type' => 'string',
'length' => 255,
'fixed' => false,
'primary' => false,
'default' => '',
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('typeCommande', 'string', 255, array(
'type' => 'string',
'length' => 255,
'fixed' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('statutCommande', 'integer', 1, array(
'type' => 'integer',
'length' => 1,
'unsigned' => 0,
'primary' => false,
'default' => '0',
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('commentaire', 'string', 255, array(
'type' => 'string',
'length' => 255,
'fixed' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('dateCommande', 'timestamp', null, array(
'type' => 'timestamp',
'primary' => false,
'default' => '0000-00-00 00:00:00',
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('dateReception', 'timestamp', null, array(
'type' => 'timestamp',
'primary' => false,
'default' => '0000-00-00 00:00:00',
'notnull' => true,
'autoincrement' => false,
));
}
}