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

/**
 * BaseTS_REG_TRI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_reg_tri
 * @property string $descripcion
 * @property Doctrine_Collection $TS_RES_TRI
 * 
 * @method integer             getIdRegTri()    Returns the current record's "id_reg_tri" 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_REG_TRI          setIdRegTri()    Sets the current record's "id_reg_tri" value
 * @method TS_REG_TRI          setDescripcion() Sets the current record's "descripcion" value
 * @method TS_REG_TRI          setTSRESTRI()    Sets the current record's "TS_RES_TRI" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_REG_TRI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_REG_TRI');
        $this->hasColumn('id_reg_tri', '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_reg_tri',
             'foreign' => 'id_reg_tri'));
    }
}