<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('TS_TIP_RES_TRI', 'doctrine');

/**
 * BaseTS_TIP_RES_TRI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_res
 * @property string $descripcion
 * @property Doctrine_Collection $TS_RES_TRI
 * 
 * @method integer             getIdTipRes()    Returns the current record's "id_tip_res" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method Doctrine_Collection getTSRESTRI()    Returns the current record's "TS_RES_TRI" collection
 * @method TS_TIP_RES_TRI      setIdTipRes()    Sets the current record's "id_tip_res" value
 * @method TS_TIP_RES_TRI      setDescripcion() Sets the current record's "descripcion" value
 * @method TS_TIP_RES_TRI      setTSRESTRI()    Sets the current record's "TS_RES_TRI" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_TIP_RES_TRI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_TIP_RES_TRI');
        $this->hasColumn('id_tip_res', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('TS_RES_TRI', array(
             'local' => 'id_tip_res',
             'foreign' => 'id_tip_res'));
    }
}