<?php

/**
 * BaseCat
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $title
 * @property float $min_weight
 * @property float $price
 * @property integer $order_id
 * @property Doctrine_Collection $Export
 * 
 * @method string              getTitle()      Returns the current record's "title" value
 * @method float               getMinWeight()  Returns the current record's "min_weight" value
 * @method float               getPrice()      Returns the current record's "price" value
 * @method integer             getOrderId()    Returns the current record's "order_id" value
 * @method Doctrine_Collection getExport()     Returns the current record's "Export" collection
 * @method Cat                 setTitle()      Sets the current record's "title" value
 * @method Cat                 setMinWeight()  Sets the current record's "min_weight" value
 * @method Cat                 setPrice()      Sets the current record's "price" value
 * @method Cat                 setOrderId()    Sets the current record's "order_id" value
 * @method Cat                 setExport()     Sets the current record's "Export" collection
 * 
 * @package    sf
 * @subpackage model
 * @author     Atma
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCat extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('cat');
        $this->hasColumn('title', 'string', 1000, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 1000,
             ));
        $this->hasColumn('min_weight', 'float', 10, array(
             'type' => 'float',
             'length' => 10,
             'scale' => '3',
             ));
        $this->hasColumn('price', 'float', 10, array(
             'type' => 'float',
             'length' => 10,
             'scale' => '2',
             ));
        $this->hasColumn('order_id', 'integer', null, array(
             'type' => 'integer',
             'notnull' => true,
             'default' => 0,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('Export', array(
             'local' => 'id',
             'foreign' => 'cat_id'));

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