43 lines
1.7 KiB
PHP
43 lines
1.7 KiB
PHP
<?php
|
|
|
|
/**
|
|
* BaseReport
|
|
*
|
|
* This class has been auto-generated by the Doctrine ORM Framework
|
|
*
|
|
* @property integer $id
|
|
* @property string $companyproductidentifier
|
|
* @property string $content
|
|
* @property string $format
|
|
* @property string $user
|
|
* @property timestamp $created
|
|
* @property timestamp $modified
|
|
* @property integer $order_id
|
|
* @property integer $country_id
|
|
*
|
|
* @package ##PACKAGE##
|
|
* @subpackage ##SUBPACKAGE##
|
|
* @author ##NAME## <##EMAIL##>
|
|
* @version SVN: $Id: Builder.php 5441 2009-01-30 22:58:43Z jwage $
|
|
*/
|
|
abstract class BaseReport extends Doctrine_Record
|
|
{
|
|
public function setTableDefinition()
|
|
{
|
|
$this->setTableName('report');
|
|
$this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'length' => 4, 'primary' => true, 'autoincrement' => true));
|
|
$this->hasColumn('identifier', 'string', 100, array('type' => 'string', 'length' => 100, 'notnull' => true));
|
|
$this->hasColumn('content', 'string', null, array('type' => 'string', 'notnull' => true));
|
|
$this->hasColumn('format', 'string', 10, array('type' => 'string', 'length' => 10, 'notnull' => true));
|
|
$this->hasColumn('created_at', 'timestamp', null, array('type' => 'timestamp', 'default' => '0000-00-00 00:00:00', 'notnull' => true));
|
|
$this->hasColumn('updated_at', 'timestamp', null, array('type' => 'timestamp', 'default' => '0000-00-00 00:00:00', 'notnull' => true));
|
|
$this->hasColumn('order_id', 'integer', 4, array('type' => 'integer', 'length' => 4, 'notnull' => true));
|
|
}
|
|
|
|
public function setUp()
|
|
{
|
|
$this->actAs('Timestampable');
|
|
$this->hasOne('Commandes', array('local' => 'order_id', 'foreign' => 'id'));
|
|
}
|
|
|
|
} |