extranet/includes/models/sdv1/generated/BaseCommandes.php
2009-05-13 16:03:54 +00:00

37 lines
1.8 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 timestamp $dateCommande
* @property timestamp $dateReception
*
* @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('idCommande', 'integer', 4, array('type' => 'integer', 'length' => 4, 'primary' => true, 'autoincrement' => true));
$this->hasColumn('idUser', 'integer', 4, array('type' => 'integer', 'length' => 4, 'default' => '0', 'notnull' => true));
$this->hasColumn('login', 'string', 32, array('type' => 'string', 'length' => 32, 'default' => '', 'notnull' => true));
$this->hasColumn('emailCommande', 'string', 80, array('type' => 'string', 'length' => 80, 'default' => '', 'notnull' => true));
$this->hasColumn('siren', 'integer', 4, array('type' => 'integer', 'length' => 4, 'unsigned' => 1, 'default' => '000000000', 'notnull' => true));
$this->hasColumn('refDocument', 'string', 255, array('type' => 'string', 'length' => 255, 'default' => '', 'notnull' => true));
$this->hasColumn('dateCommande', 'timestamp', null, array('type' => 'timestamp', 'default' => '0000-00-00 00:00:00', 'notnull' => true));
$this->hasColumn('dateReception', 'timestamp', null, array('type' => 'timestamp', 'default' => '0000-00-00 00:00:00', 'notnull' => true));
}
}