BaseProductPropList.class.php 2.2 KB
Newer Older
Яков's avatar
first  
Яков committed
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
<?php

/**
 * BaseProductPropList
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property text $inner_id
 * @property integer $product_prop_id
 * @property string $variant
 * @property ProductProp $ProductProp
 * 
 * @method text            getInnerId()         Returns the current record's "inner_id" value
 * @method integer         getProductPropId()   Returns the current record's "product_prop_id" value
 * @method string          getVariant()         Returns the current record's "variant" value
 * @method ProductProp     getProductProp()     Returns the current record's "ProductProp" value
 * @method ProductPropList setInnerId()         Sets the current record's "inner_id" value
 * @method ProductPropList setProductPropId()   Sets the current record's "product_prop_id" value
 * @method ProductPropList setVariant()         Sets the current record's "variant" value
 * @method ProductPropList setProductProp()     Sets the current record's "ProductProp" value
 * 
 * @package    sf
 * @subpackage model
 * @author     Atma
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseProductPropList extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('product_prop_list');
        $this->hasColumn('inner_id', 'text', null, array(
             'type' => 'text',
             ));
        $this->hasColumn('product_prop_id', 'integer', null, array(
             'type' => 'integer',
             'notnull' => true,
             ));
        $this->hasColumn('variant', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('ProductProp', array(
             'local' => 'product_prop_id',
             'foreign' => 'id',
             'onDelete' => 'CASCADE'));

        $timestampable0 = new Doctrine_Template_Timestampable();
        $i18n0 = new Doctrine_Template_I18n(array(
             'fields' => 
             array(
              0 => 'variant',
             ),
             ));
        $this->actAs($timestampable0);
        $this->actAs($i18n0);
    }
}