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

/**
 * BaseTS_RES_TRI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_res_tri
 * @property integer $autoretenedor
 * @property integer $id_reg_tri
 * @property integer $id_tip_res
 * @property integer $id_inf_tri
 * @property INTERCER_DT $INTERCER_DT
 * @property TS_REG_TRI $TS_REG_TRI
 * @property TS_TIP_RES_TRI $TS_TIP_RES_TRI
 * 
 * @method integer        getIdResTri()       Returns the current record's "id_res_tri" value
 * @method integer        getAutoretenedor()  Returns the current record's "autoretenedor" value
 * @method integer        getIdRegTri()       Returns the current record's "id_reg_tri" value
 * @method integer        getIdTipRes()       Returns the current record's "id_tip_res" value
 * @method integer        getIdInfTri()       Returns the current record's "id_inf_tri" value
 * @method INTERCER_DT    getINTERCERDT()     Returns the current record's "INTERCER_DT" value
 * @method TS_REG_TRI     getTSREGTRI()       Returns the current record's "TS_REG_TRI" value
 * @method TS_TIP_RES_TRI getTSTIPRESTRI()    Returns the current record's "TS_TIP_RES_TRI" value
 * @method TS_RES_TRI     setIdResTri()       Sets the current record's "id_res_tri" value
 * @method TS_RES_TRI     setAutoretenedor()  Sets the current record's "autoretenedor" value
 * @method TS_RES_TRI     setIdRegTri()       Sets the current record's "id_reg_tri" value
 * @method TS_RES_TRI     setIdTipRes()       Sets the current record's "id_tip_res" value
 * @method TS_RES_TRI     setIdInfTri()       Sets the current record's "id_inf_tri" value
 * @method TS_RES_TRI     setINTERCERDT()     Sets the current record's "INTERCER_DT" value
 * @method TS_RES_TRI     setTSREGTRI()       Sets the current record's "TS_REG_TRI" value
 * @method TS_RES_TRI     setTSTIPRESTRI()    Sets the current record's "TS_TIP_RES_TRI" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_RES_TRI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_RES_TRI');
        $this->hasColumn('id_res_tri', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('autoretenedor', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_reg_tri', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tip_res', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_inf_tri', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('INTERCER_DT', array(
             'local' => 'id_inf_tri',
             'foreign' => 'id_inf_tri'));

        $this->hasOne('TS_REG_TRI', array(
             'local' => 'id_reg_tri',
             'foreign' => 'id_reg_tri'));

        $this->hasOne('TS_TIP_RES_TRI', array(
             'local' => 'id_tip_res',
             'foreign' => 'id_tip_res'));
    }
}