Modification modèle de données , TODO : Mettre à jour la base de données

This commit is contained in:
Michael RICOIS 2010-05-04 08:25:24 +00:00
parent 6c40cd0690
commit 61467671e9
3 changed files with 255 additions and 2 deletions

View File

@ -0,0 +1,16 @@
<?php
/**
* CommandesKbis
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
*/
class CommandesKbis extends BaseCommandesKbis
{
}

View File

@ -0,0 +1,197 @@
<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('CommandesKbis', 'sdv1');
/**
* BaseCommandesKbis
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @property integer $id
* @property integer $idUser
* @property string $login
* @property string $email
* @property string $societe
* @property string $nom
* @property string $adresse
* @property string $cp
* @property string $ville
* @property integer $siren
* @property string $raisonSociale
* @property string $type
* @property string $document
* @property integer $statutCommande
* @property string $info
* @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 BaseCommandesKbis extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('commandes_kbis');
$this->hasColumn('id', '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,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('login', 'string', 50, array(
'type' => 'string',
'length' => 50,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('email', 'string', 82, array(
'type' => 'string',
'length' => 82,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('societe', 'string', 200, array(
'type' => 'string',
'length' => 200,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('nom', 'string', 200, array(
'type' => 'string',
'length' => 200,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('adresse', 'string', 200, array(
'type' => 'string',
'length' => 200,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('cp', 'string', 200, array(
'type' => 'string',
'length' => 200,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('ville', 'string', 200, array(
'type' => 'string',
'length' => 200,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('siren', 'integer', 4, array(
'type' => 'integer',
'length' => 4,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('raisonSociale', 'string', 200, array(
'type' => 'string',
'length' => 200,
'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' => false,
'autoincrement' => false,
));
$this->hasColumn('statutCommande', 'integer', 4, array(
'type' => 'integer',
'length' => 4,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('info', 'string', 200, array(
'type' => 'string',
'length' => 200,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => false,
'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();
}
}

View File

@ -8,11 +8,15 @@ Doctrine_Manager::getInstance()->bindComponent('CommandesPieces', 'sdv1');
* This class has been auto-generated by the Doctrine ORM Framework
*
* @property integer $id
* @property integer $idUser
* @property string $login
* @property string $email
* @property string $raisonSociale
* @property string $siren
* @property string $type
* @property string $document
* @property string $info
* @property integer $statut
* @property integer $statutCommande
* @property timestamp $dateCommande
* @property timestamp $dateReception
*
@ -34,6 +38,42 @@ abstract class BaseCommandesPieces extends Doctrine_Record
'primary' => true,
'autoincrement' => true,
));
$this->hasColumn('idUser', 'integer', 4, array(
'type' => 'integer',
'length' => 4,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('login', 'string', 32, array(
'type' => 'string',
'length' => 32,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('email', 'string', 80, array(
'type' => 'string',
'length' => 80,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('raisonSociale', 'string', 200, array(
'type' => 'string',
'length' => 200,
'fixed' => false,
'unsigned' => false,
'primary' => false,
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('siren', 'string', 9, array(
'type' => 'string',
'length' => 9,
@ -69,7 +109,7 @@ abstract class BaseCommandesPieces extends Doctrine_Record
'notnull' => true,
'autoincrement' => false,
));
$this->hasColumn('statut', 'integer', 4, array(
$this->hasColumn('statutCommande', 'integer', 4, array(
'type' => 'integer',
'length' => 4,
'fixed' => false,