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

/**
 * BaseTS_OBLIGACION_VAL
 * 
 * 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 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 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 TS_OBLIGACION_VAL setIdObligacionVal()   Sets the current record's "id_obligacion_val" value
 * @method TS_OBLIGACION_VAL setIdObligacion()      Sets the current record's "id_obligacion" value
 * @method TS_OBLIGACION_VAL setIdAsign()           Sets the current record's "id_asign" value
 * @method TS_OBLIGACION_VAL setIdObjGasto()        Sets the current record's "id_obj_gasto" value
 * @method TS_OBLIGACION_VAL setValorObligacion()   Sets the current record's "valor_obligacion" value
 * @method TS_OBLIGACION_VAL setIdCpo()             Sets the current record's "id_cpo" value
 * @method TS_OBLIGACION_VAL setSecuencia()         Sets the current record's "secuencia" value
 * @method TS_OBLIGACION_VAL setIdVigencia()        Sets the current record's "id_vigencia" value
 * @method TS_OBLIGACION_VAL setAnoFiscal()         Sets the current record's "ano_fiscal" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION()      Sets the current record's "TS_OBLIGACION" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION2()     Sets the current record's "TS_OBLIGACION_2" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION3()     Sets the current record's "TS_OBLIGACION_3" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION4()     Sets the current record's "TS_OBLIGACION_4" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION5()     Sets the current record's "TS_OBLIGACION_5" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION6()     Sets the current record's "TS_OBLIGACION_6" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION7()     Sets the current record's "TS_OBLIGACION_7" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION8()     Sets the current record's "TS_OBLIGACION_8" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION9()     Sets the current record's "TS_OBLIGACION_9" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION10()    Sets the current record's "TS_OBLIGACION_10" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION11()    Sets the current record's "TS_OBLIGACION_11" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION12()    Sets the current record's "TS_OBLIGACION_12" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION13()    Sets the current record's "TS_OBLIGACION_13" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION14()    Sets the current record's "TS_OBLIGACION_14" value
 * @method TS_OBLIGACION_VAL setTSOBLIGACION15()    Sets the current record's "TS_OBLIGACION_15" value
 * @method TS_OBLIGACION_VAL 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 BaseTS_OBLIGACION_VAL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_OBLIGACION_VAL');
        $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,
             ));
    }

    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'));
    }
}