1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
<?php
/**
* Basedimension
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @property string $name
* @property string $unite
* @property float $facteur
* @property Doctrine_Collection $dimensionArticle
*
* @method string getName() Returns the current record's "name" value
* @method string getUnite() Returns the current record's "unite" value
* @method float getFacteur() Returns the current record's "facteur" value
* @method Doctrine_Collection getDimensionArticle() Returns the current record's "dimensionArticle" collection
* @method dimension setName() Sets the current record's "name" value
* @method dimension setUnite() Sets the current record's "unite" value
* @method dimension setFacteur() Sets the current record's "facteur" value
* @method dimension setDimensionArticle() Sets the current record's "dimensionArticle" collection
*
* @package grandpapa
* @subpackage model
* @author Your name here
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
*/
abstract class Basedimension extends sfDoctrineRecord
{
public function setTableDefinition()
{
$this->setTableName('dimension');
$this->hasColumn('name', 'string', 50, array(
'type' => 'string',
'length' => 50,
));
$this->hasColumn('unite', 'string', 50, array(
'type' => 'string',
'length' => 50,
));
$this->hasColumn('facteur', 'float', null, array(
'type' => 'float',
));
}
public function setUp()
{
parent::setUp();
$this->hasMany('dimensionArticle', array(
'local' => 'id',
'foreign' => 'dimension_id'));
$i18n0 = new Doctrine_Template_I18n(array(
'fields' =>
array(
0 => 'name',
1 => 'unite',
2 => 'facteur',
),
));
$sluggable1 = new Doctrine_Template_Sluggable(array(
'fields' =>
array(
0 => 'name',
),
'uniqueBy' =>
array(
0 => 'lang',
1 => 'name',
),
));
$i18n0->addChild($sluggable1);
$this->actAs($i18n0);
}
} |
Partager