<?php

/**
 * BaseProductPropValue
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $product_id
 * @property integer $prop_id
 * @property decimal $value
 * @property Product $Product
 * @property ProductProp $ProductProp
 * 
 * @method integer          getProductId()   Returns the current record's "product_id" value
 * @method integer          getPropId()      Returns the current record's "prop_id" value
 * @method decimal          getValue()       Returns the current record's "value" value
 * @method Product          getProduct()     Returns the current record's "Product" value
 * @method ProductProp      getProductProp() Returns the current record's "ProductProp" value
 * @method ProductPropValue setProductId()   Sets the current record's "product_id" value
 * @method ProductPropValue setPropId()      Sets the current record's "prop_id" value
 * @method ProductPropValue setValue()       Sets the current record's "value" value
 * @method ProductPropValue setProduct()     Sets the current record's "Product" value
 * @method ProductPropValue 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 BaseProductPropValue extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('product_prop_value');
        $this->hasColumn('product_id', 'integer', null, array(
             'type' => 'integer',
             'notnull' => true,
             ));
        $this->hasColumn('prop_id', 'integer', null, array(
             'type' => 'integer',
             'notnull' => true,
             ));
        $this->hasColumn('value', 'decimal', null, array(
             'type' => 'decimal',
             'notnull' => true,
             ));
    }

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

        $this->hasOne('ProductProp', array(
             'local' => 'prop_id',
             'foreign' => 'id',
             'onDelete' => 'CASCADE'));

        $timestampable0 = new Doctrine_Template_Timestampable();
        $this->actAs($timestampable0);
    }
}