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

/**
 * BaseTS_TIPO_PARTIDA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_par
 * @property string $descripcion
 * @property Doctrine_Collection $TR_DIS_VAL
 * 
 * @method integer             getIdTipPar()    Returns the current record's "id_tip_par" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method Doctrine_Collection getTRDISVAL()    Returns the current record's "TR_DIS_VAL" collection
 * @method TS_TIPO_PARTIDA     setIdTipPar()    Sets the current record's "id_tip_par" value
 * @method TS_TIPO_PARTIDA     setDescripcion() Sets the current record's "descripcion" value
 * @method TS_TIPO_PARTIDA     setTRDISVAL()    Sets the current record's "TR_DIS_VAL" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_TIPO_PARTIDA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_TIPO_PARTIDA');
        $this->hasColumn('id_tip_par', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $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('TR_DIS_VAL', array(
             'local' => 'id_tip_par',
             'foreign' => 'id_tip_par'));
    }
}