<?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 $RVC_CONTRATISTA
 * 
 * @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 getRVCCONTRATISTA()  Returns the current record's "RVC_CONTRATISTA" 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          setRVCCONTRATISTA()  Sets the current record's "RVC_CONTRATISTA" collection
 * 
 * @package    radicacionVirtualCuentas
 * @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' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
    }

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