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

/**
 * BaseTSDC_SAFI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_obligacion_val
 * @property integer $id_obligacion
 * @property integer $id_asign
 * @property integer $id_obj_gasto
 * @property decimal $valor_obligacion
 * @property integer $id_cpo
 * @property integer $secuencia
 * @property integer $id_vigencia
 * @property string $ano_fiscal
 * @property string $cod_obj_gasto
 * @property string $cod_proyecto
 * @property string $rubro_presup
 * @property TS_OBLIGACION $TS_OBLIGACION
 * @property TS_OBLIGACION $TS_OBLIGACION_2
 * @property TS_OBLIGACION $TS_OBLIGACION_3
 * @property TS_OBLIGACION $TS_OBLIGACION_4
 * @property TS_OBLIGACION $TS_OBLIGACION_5
 * @property TS_OBLIGACION $TS_OBLIGACION_6
 * @property TS_OBLIGACION $TS_OBLIGACION_7
 * @property TS_OBLIGACION $TS_OBLIGACION_8
 * @property TS_OBLIGACION $TS_OBLIGACION_9
 * @property TS_OBLIGACION $TS_OBLIGACION_10
 * @property TS_OBLIGACION $TS_OBLIGACION_11
 * @property TS_OBLIGACION $TS_OBLIGACION_12
 * @property TS_OBLIGACION $TS_OBLIGACION_13
 * @property TS_OBLIGACION $TS_OBLIGACION_14
 * @property TS_OBLIGACION $TS_OBLIGACION_15
 * @property TS_OBLIGACION $TS_OBLIGACION_16
 * 
 * @method integer       getIdObligacionVal()   Returns the current record's "id_obligacion_val" value
 * @method integer       getIdObligacion()      Returns the current record's "id_obligacion" value
 * @method integer       getIdAsign()           Returns the current record's "id_asign" value
 * @method integer       getIdObjGasto()        Returns the current record's "id_obj_gasto" value
 * @method decimal       getValorObligacion()   Returns the current record's "valor_obligacion" value
 * @method integer       getIdCpo()             Returns the current record's "id_cpo" value
 * @method integer       getSecuencia()         Returns the current record's "secuencia" value
 * @method integer       getIdVigencia()        Returns the current record's "id_vigencia" value
 * @method string        getAnoFiscal()         Returns the current record's "ano_fiscal" value
 * @method string        getCodObjGasto()       Returns the current record's "cod_obj_gasto" value
 * @method string        getCodProyecto()       Returns the current record's "cod_proyecto" value
 * @method string        getRubroPresup()       Returns the current record's "rubro_presup" value
 * @method TS_OBLIGACION getTSOBLIGACION()      Returns the current record's "TS_OBLIGACION" value
 * @method TS_OBLIGACION getTSOBLIGACION2()     Returns the current record's "TS_OBLIGACION_2" value
 * @method TS_OBLIGACION getTSOBLIGACION3()     Returns the current record's "TS_OBLIGACION_3" value
 * @method TS_OBLIGACION getTSOBLIGACION4()     Returns the current record's "TS_OBLIGACION_4" value
 * @method TS_OBLIGACION getTSOBLIGACION5()     Returns the current record's "TS_OBLIGACION_5" value
 * @method TS_OBLIGACION getTSOBLIGACION6()     Returns the current record's "TS_OBLIGACION_6" value
 * @method TS_OBLIGACION getTSOBLIGACION7()     Returns the current record's "TS_OBLIGACION_7" value
 * @method TS_OBLIGACION getTSOBLIGACION8()     Returns the current record's "TS_OBLIGACION_8" value
 * @method TS_OBLIGACION getTSOBLIGACION9()     Returns the current record's "TS_OBLIGACION_9" value
 * @method TS_OBLIGACION getTSOBLIGACION10()    Returns the current record's "TS_OBLIGACION_10" value
 * @method TS_OBLIGACION getTSOBLIGACION11()    Returns the current record's "TS_OBLIGACION_11" value
 * @method TS_OBLIGACION getTSOBLIGACION12()    Returns the current record's "TS_OBLIGACION_12" value
 * @method TS_OBLIGACION getTSOBLIGACION13()    Returns the current record's "TS_OBLIGACION_13" value
 * @method TS_OBLIGACION getTSOBLIGACION14()    Returns the current record's "TS_OBLIGACION_14" value
 * @method TS_OBLIGACION getTSOBLIGACION15()    Returns the current record's "TS_OBLIGACION_15" value
 * @method TS_OBLIGACION getTSOBLIGACION16()    Returns the current record's "TS_OBLIGACION_16" value
 * @method TSDC_SAFI     setIdObligacionVal()   Sets the current record's "id_obligacion_val" value
 * @method TSDC_SAFI     setIdObligacion()      Sets the current record's "id_obligacion" value
 * @method TSDC_SAFI     setIdAsign()           Sets the current record's "id_asign" value
 * @method TSDC_SAFI     setIdObjGasto()        Sets the current record's "id_obj_gasto" value
 * @method TSDC_SAFI     setValorObligacion()   Sets the current record's "valor_obligacion" value
 * @method TSDC_SAFI     setIdCpo()             Sets the current record's "id_cpo" value
 * @method TSDC_SAFI     setSecuencia()         Sets the current record's "secuencia" value
 * @method TSDC_SAFI     setIdVigencia()        Sets the current record's "id_vigencia" value
 * @method TSDC_SAFI     setAnoFiscal()         Sets the current record's "ano_fiscal" value
 * @method TSDC_SAFI     setCodObjGasto()       Sets the current record's "cod_obj_gasto" value
 * @method TSDC_SAFI     setCodProyecto()       Sets the current record's "cod_proyecto" value
 * @method TSDC_SAFI     setRubroPresup()       Sets the current record's "rubro_presup" value
 * @method TSDC_SAFI     setTSOBLIGACION()      Sets the current record's "TS_OBLIGACION" value
 * @method TSDC_SAFI     setTSOBLIGACION2()     Sets the current record's "TS_OBLIGACION_2" value
 * @method TSDC_SAFI     setTSOBLIGACION3()     Sets the current record's "TS_OBLIGACION_3" value
 * @method TSDC_SAFI     setTSOBLIGACION4()     Sets the current record's "TS_OBLIGACION_4" value
 * @method TSDC_SAFI     setTSOBLIGACION5()     Sets the current record's "TS_OBLIGACION_5" value
 * @method TSDC_SAFI     setTSOBLIGACION6()     Sets the current record's "TS_OBLIGACION_6" value
 * @method TSDC_SAFI     setTSOBLIGACION7()     Sets the current record's "TS_OBLIGACION_7" value
 * @method TSDC_SAFI     setTSOBLIGACION8()     Sets the current record's "TS_OBLIGACION_8" value
 * @method TSDC_SAFI     setTSOBLIGACION9()     Sets the current record's "TS_OBLIGACION_9" value
 * @method TSDC_SAFI     setTSOBLIGACION10()    Sets the current record's "TS_OBLIGACION_10" value
 * @method TSDC_SAFI     setTSOBLIGACION11()    Sets the current record's "TS_OBLIGACION_11" value
 * @method TSDC_SAFI     setTSOBLIGACION12()    Sets the current record's "TS_OBLIGACION_12" value
 * @method TSDC_SAFI     setTSOBLIGACION13()    Sets the current record's "TS_OBLIGACION_13" value
 * @method TSDC_SAFI     setTSOBLIGACION14()    Sets the current record's "TS_OBLIGACION_14" value
 * @method TSDC_SAFI     setTSOBLIGACION15()    Sets the current record's "TS_OBLIGACION_15" value
 * @method TSDC_SAFI     setTSOBLIGACION16()    Sets the current record's "TS_OBLIGACION_16" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTSDC_SAFI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TSDC_SAFI');
        $this->hasColumn('id_obligacion_val', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_obligacion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_asign', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_obj_gasto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_obligacion', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('id_cpo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('secuencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ano_fiscal', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('cod_obj_gasto', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('cod_proyecto', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('rubro_presup', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_2', array(
             'local' => 'id_obligacion',
             'foreign' => 'secuencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_3', array(
             'local' => 'id_obligacion',
             'foreign' => 'id_vigencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_4', array(
             'local' => 'id_obligacion',
             'foreign' => 'ano_fiscal'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_5', array(
             'local' => 'secuencia',
             'foreign' => 'id_obligacion'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_6', array(
             'local' => 'secuencia',
             'foreign' => 'secuencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_7', array(
             'local' => 'secuencia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_8', array(
             'local' => 'secuencia',
             'foreign' => 'ano_fiscal'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_9', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_obligacion'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_10', array(
             'local' => 'id_vigencia',
             'foreign' => 'secuencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_11', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_12', array(
             'local' => 'id_vigencia',
             'foreign' => 'ano_fiscal'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_13', array(
             'local' => 'ano_fiscal',
             'foreign' => 'id_obligacion'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_14', array(
             'local' => 'ano_fiscal',
             'foreign' => 'secuencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_15', array(
             'local' => 'ano_fiscal',
             'foreign' => 'id_vigencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_16', array(
             'local' => 'ano_fiscal',
             'foreign' => 'ano_fiscal'));
    }
}