bindComponent('Commandes', 'sdv1'); /** * 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 7490 2010-03-29 19:53:27Z jwage $ */ abstract class BaseCommandes extends Doctrine_Record { public function setTableDefinition() { $this->setTableName('commandes'); $this->hasColumn('idCommande', 'integer', 4, array( 'type' => 'integer', 'length' => 4, 'fixed' => false, 'unsigned' => false, 'primary' => true, 'autoincrement' => true, )); $this->hasColumn('idUser', 'integer', 4, array( 'type' => 'integer', 'length' => 4, 'fixed' => false, 'unsigned' => false, 'primary' => false, 'default' => '0', 'notnull' => true, 'autoincrement' => false, )); $this->hasColumn('login', 'string', 32, array( 'type' => 'string', 'length' => 32, 'fixed' => false, 'unsigned' => false, 'primary' => false, 'default' => '', 'notnull' => true, 'autoincrement' => false, )); $this->hasColumn('emailCommande', 'string', 80, array( 'type' => 'string', 'length' => 80, 'fixed' => false, 'unsigned' => false, 'primary' => false, 'default' => '', 'notnull' => true, 'autoincrement' => false, )); $this->hasColumn('siren', 'integer', 4, array( 'type' => 'integer', 'length' => 4, 'fixed' => false, 'unsigned' => true, 'primary' => false, 'default' => '000000000', 'notnull' => true, 'autoincrement' => false, )); $this->hasColumn('refDocument', 'string', 255, array( 'type' => 'string', 'length' => 255, 'fixed' => false, 'unsigned' => false, 'primary' => false, 'default' => '', 'notnull' => true, 'autoincrement' => false, )); $this->hasColumn('libDocument', 'string', 255, array( 'type' => 'string', 'length' => 255, 'fixed' => false, 'unsigned' => false, 'primary' => false, 'default' => '', 'notnull' => true, 'autoincrement' => false, )); $this->hasColumn('typeCommande', 'string', 255, array( 'type' => 'string', 'length' => 255, 'fixed' => false, 'unsigned' => false, 'primary' => false, 'notnull' => true, 'autoincrement' => false, )); $this->hasColumn('statutCommande', 'integer', 1, array( 'type' => 'integer', 'length' => 1, 'fixed' => false, 'unsigned' => false, 'primary' => false, 'default' => '0', 'notnull' => true, 'autoincrement' => false, )); $this->hasColumn('commentaire', 'string', 255, array( 'type' => 'string', 'length' => 255, 'fixed' => false, 'unsigned' => false, 'primary' => false, 'default' => '', '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(); } }