<?php

/**
 * BaseBasket
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $basket_order_id
 * @property BasketOrder $BasketOrder
 * @property Doctrine_Collection $BasketOffer
 * 
 * @method integer             getBasketOrderId()   Returns the current record's "basket_order_id" value
 * @method BasketOrder         getBasketOrder()     Returns the current record's "BasketOrder" value
 * @method Doctrine_Collection getBasketOffer()     Returns the current record's "BasketOffer" collection
 * @method Basket              setBasketOrderId()   Sets the current record's "basket_order_id" value
 * @method Basket              setBasketOrder()     Sets the current record's "BasketOrder" value
 * @method Basket              setBasketOffer()     Sets the current record's "BasketOffer" collection
 * 
 * @package    sf
 * @subpackage model
 * @author     Atma
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseBasket extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('basket');
        $this->hasColumn('basket_order_id', 'integer', null, array(
             'type' => 'integer',
             ));
    }

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

        $this->hasMany('BasketOffer', array(
             'local' => 'id',
             'foreign' => 'basket_id'));

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