97 lines
3.0 KiB
PHP
97 lines
3.0 KiB
PHP
<?php
|
|
// Connection Component Binding
|
|
Doctrine_Manager::getInstance()->bindComponent('Price', 'intersud');
|
|
|
|
/**
|
|
* BasePrice
|
|
*
|
|
* This class has been auto-generated by the Doctrine ORM Framework
|
|
*
|
|
* @property integer $id
|
|
* @property string $normal
|
|
* @property string $rapide
|
|
* @property string $user
|
|
* @property timestamp $created_at
|
|
* @property timestamp $updated_at
|
|
* @property integer $country_id
|
|
*
|
|
* @package ##PACKAGE##
|
|
* @subpackage ##SUBPACKAGE##
|
|
* @author ##NAME## <##EMAIL##>
|
|
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
|
|
*/
|
|
abstract class BasePrice extends Doctrine_Record
|
|
{
|
|
public function setTableDefinition()
|
|
{
|
|
$this->setTableName('price');
|
|
$this->hasColumn('id', 'integer', 4, array(
|
|
'type' => 'integer',
|
|
'length' => 4,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => true,
|
|
'autoincrement' => true,
|
|
));
|
|
$this->hasColumn('normal', 'string', 10, array(
|
|
'type' => 'string',
|
|
'length' => 10,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('rapide', 'string', 10, array(
|
|
'type' => 'string',
|
|
'length' => 10,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('user', 'string', 100, array(
|
|
'type' => 'string',
|
|
'length' => 100,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('created_at', 'timestamp', null, array(
|
|
'type' => 'timestamp',
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'default' => '0000-00-00 00:00:00',
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('updated_at', 'timestamp', null, array(
|
|
'type' => 'timestamp',
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'default' => '0000-00-00 00:00:00',
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
$this->hasColumn('country_id', 'integer', 4, array(
|
|
'type' => 'integer',
|
|
'length' => 4,
|
|
'fixed' => false,
|
|
'unsigned' => false,
|
|
'primary' => false,
|
|
'notnull' => true,
|
|
'autoincrement' => false,
|
|
));
|
|
}
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
|
|
}
|
|
} |