<?php

/**
 * BasePartners
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $title
 * @property string $cover
 * @property text $link
 * @property integer $order_id
 * 
 * @method string   getTitle()    Returns the current record's "title" value
 * @method string   getCover()    Returns the current record's "cover" value
 * @method text     getLink()     Returns the current record's "link" value
 * @method integer  getOrderId()  Returns the current record's "order_id" value
 * @method Partners setTitle()    Sets the current record's "title" value
 * @method Partners setCover()    Sets the current record's "cover" value
 * @method Partners setLink()     Sets the current record's "link" value
 * @method Partners setOrderId()  Sets the current record's "order_id" value
 * 
 * @package    sf
 * @subpackage model
 * @author     Atma
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BasePartners extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('partners');
        $this->hasColumn('title', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('cover', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('link', 'text', null, array(
             'type' => 'text',
             ));
        $this->hasColumn('order_id', 'integer', null, array(
             'type' => 'integer',
             'notnull' => true,
             'default' => 100,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $timestampable0 = new Doctrine_Template_Timestampable();
        $this->actAs($timestampable0);
    }
}