* @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)); } }