106 lines
3.3 KiB
PHP
106 lines
3.3 KiB
PHP
<?php
|
|
// Connection Component Binding
|
|
Doctrine_Manager::getInstance()->bindComponent('CommandesPieces', 'sdv1');
|
|
|
|
/**
|
|
* BaseCommandesPieces
|
|
*
|
|
* This class has been auto-generated by the Doctrine ORM Framework
|
|
*
|
|
* @property integer $id
|
|
* @property string $siren
|
|
* @property string $type
|
|
* @property string $document
|
|
* @property string $info
|
|
* @property integer $statut
|
|
* @property timestamp $dateCommande
|
|
* @property timestamp $dateReception
|
|
*
|
|
* @package ##PACKAGE##
|
|
* @subpackage ##SUBPACKAGE##
|
|
* @author ##NAME## <##EMAIL##>
|
|
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
|
|
*/
|
|
abstract class BaseCommandesPieces extends Doctrine_Record
|
|
{
|
|
public function setTableDefinition()
|
|
{
|
|
$this->setTableName('commandes_pieces');
|
|
$this->hasColumn('id', 'integer', 4, array(
|
|
'type' => 'integer',
|
|
'length' => 4,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => true,
|
|
'autoincrement' => true,
|
|
));
|
|
$this->hasColumn('siren', 'string', 9, array(
|
|
'type' => 'string',
|
|
'length' => 9,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('type', 'string', 1, array(
|
|
'type' => 'string',
|
|
'length' => 1,
|
|
'fixed' => true,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('document', 'string', 200, array(
|
|
'type' => 'string',
|
|
'length' => 200,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('info', 'string', null, array(
|
|
'type' => 'string',
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('statut', 'integer', 4, array(
|
|
'type' => 'integer',
|
|
'length' => 4,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('dateCommande', 'timestamp', null, array(
|
|
'type' => 'timestamp',
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'default' => '0000-00-00 00:00:00',
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('dateReception', 'timestamp', null, array(
|
|
'type' => 'timestamp',
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'default' => '0000-00-00 00:00:00',
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
}
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
|
|
}
|
|
} |