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

/**
 * BaseCM_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 $vigencia
 * @property integer $id_caja_menor
 * @property CM_OBLIGACION $CM_OBLIGACION
 * @property CM_OBLIGACION $CM_OBLIGACION_2
 * @property CM_OBLIGACION $CM_OBLIGACION_3
 * @property CM_OBLIGACION $CM_OBLIGACION_4
 * @property CM_OBLIGACION $CM_OBLIGACION_5
 * @property CM_OBLIGACION $CM_OBLIGACION_6
 * @property CM_OBLIGACION $CM_OBLIGACION_7
 * @property CM_OBLIGACION $CM_OBLIGACION_8
 * @property CM_OBLIGACION $CM_OBLIGACION_9
 * @property CM_OBLIGACION $CM_OBLIGACION_10
 * @property CM_OBLIGACION $CM_OBLIGACION_11
 * @property CM_OBLIGACION $CM_OBLIGACION_12
 * @property CM_OBLIGACION $CM_OBLIGACION_13
 * @property CM_OBLIGACION $CM_OBLIGACION_14
 * @property CM_OBLIGACION $CM_OBLIGACION_15
 * @property CM_OBLIGACION $CM_OBLIGACION_16
 * @property CM_OBLIGACION $CM_OBLIGACION_17
 * @property CM_OBLIGACION $CM_OBLIGACION_18
 * @property CM_OBLIGACION $CM_OBLIGACION_19
 * @property CM_OBLIGACION $CM_OBLIGACION_20
 * @property CM_OBLIGACION $CM_OBLIGACION_21
 * @property CM_OBLIGACION $CM_OBLIGACION_22
 * @property CM_OBLIGACION $CM_OBLIGACION_23
 * @property CM_OBLIGACION $CM_OBLIGACION_24
 * @property CM_OBLIGACION $CM_OBLIGACION_25
 * 
 * @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            getVigencia()          Returns the current record's "vigencia" value
 * @method integer           getIdCajaMenor()       Returns the current record's "id_caja_menor" value
 * @method CM_OBLIGACION     getCMOBLIGACION()      Returns the current record's "CM_OBLIGACION" value
 * @method CM_OBLIGACION     getCMOBLIGACION2()     Returns the current record's "CM_OBLIGACION_2" value
 * @method CM_OBLIGACION     getCMOBLIGACION3()     Returns the current record's "CM_OBLIGACION_3" value
 * @method CM_OBLIGACION     getCMOBLIGACION4()     Returns the current record's "CM_OBLIGACION_4" value
 * @method CM_OBLIGACION     getCMOBLIGACION5()     Returns the current record's "CM_OBLIGACION_5" value
 * @method CM_OBLIGACION     getCMOBLIGACION6()     Returns the current record's "CM_OBLIGACION_6" value
 * @method CM_OBLIGACION     getCMOBLIGACION7()     Returns the current record's "CM_OBLIGACION_7" value
 * @method CM_OBLIGACION     getCMOBLIGACION8()     Returns the current record's "CM_OBLIGACION_8" value
 * @method CM_OBLIGACION     getCMOBLIGACION9()     Returns the current record's "CM_OBLIGACION_9" value
 * @method CM_OBLIGACION     getCMOBLIGACION10()    Returns the current record's "CM_OBLIGACION_10" value
 * @method CM_OBLIGACION     getCMOBLIGACION11()    Returns the current record's "CM_OBLIGACION_11" value
 * @method CM_OBLIGACION     getCMOBLIGACION12()    Returns the current record's "CM_OBLIGACION_12" value
 * @method CM_OBLIGACION     getCMOBLIGACION13()    Returns the current record's "CM_OBLIGACION_13" value
 * @method CM_OBLIGACION     getCMOBLIGACION14()    Returns the current record's "CM_OBLIGACION_14" value
 * @method CM_OBLIGACION     getCMOBLIGACION15()    Returns the current record's "CM_OBLIGACION_15" value
 * @method CM_OBLIGACION     getCMOBLIGACION16()    Returns the current record's "CM_OBLIGACION_16" value
 * @method CM_OBLIGACION     getCMOBLIGACION17()    Returns the current record's "CM_OBLIGACION_17" value
 * @method CM_OBLIGACION     getCMOBLIGACION18()    Returns the current record's "CM_OBLIGACION_18" value
 * @method CM_OBLIGACION     getCMOBLIGACION19()    Returns the current record's "CM_OBLIGACION_19" value
 * @method CM_OBLIGACION     getCMOBLIGACION20()    Returns the current record's "CM_OBLIGACION_20" value
 * @method CM_OBLIGACION     getCMOBLIGACION21()    Returns the current record's "CM_OBLIGACION_21" value
 * @method CM_OBLIGACION     getCMOBLIGACION22()    Returns the current record's "CM_OBLIGACION_22" value
 * @method CM_OBLIGACION     getCMOBLIGACION23()    Returns the current record's "CM_OBLIGACION_23" value
 * @method CM_OBLIGACION     getCMOBLIGACION24()    Returns the current record's "CM_OBLIGACION_24" value
 * @method CM_OBLIGACION     getCMOBLIGACION25()    Returns the current record's "CM_OBLIGACION_25" value
 * @method CM_OBLIGACION_VAL setIdObligacionVal()   Sets the current record's "id_obligacion_val" value
 * @method CM_OBLIGACION_VAL setIdObligacion()      Sets the current record's "id_obligacion" value
 * @method CM_OBLIGACION_VAL setIdAsign()           Sets the current record's "id_asign" value
 * @method CM_OBLIGACION_VAL setIdObjGasto()        Sets the current record's "id_obj_gasto" value
 * @method CM_OBLIGACION_VAL setValorObligacion()   Sets the current record's "valor_obligacion" value
 * @method CM_OBLIGACION_VAL setIdCpo()             Sets the current record's "id_cpo" value
 * @method CM_OBLIGACION_VAL setSecuencia()         Sets the current record's "secuencia" value
 * @method CM_OBLIGACION_VAL setIdVigencia()        Sets the current record's "id_vigencia" value
 * @method CM_OBLIGACION_VAL setVigencia()          Sets the current record's "vigencia" value
 * @method CM_OBLIGACION_VAL setIdCajaMenor()       Sets the current record's "id_caja_menor" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION()      Sets the current record's "CM_OBLIGACION" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION2()     Sets the current record's "CM_OBLIGACION_2" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION3()     Sets the current record's "CM_OBLIGACION_3" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION4()     Sets the current record's "CM_OBLIGACION_4" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION5()     Sets the current record's "CM_OBLIGACION_5" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION6()     Sets the current record's "CM_OBLIGACION_6" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION7()     Sets the current record's "CM_OBLIGACION_7" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION8()     Sets the current record's "CM_OBLIGACION_8" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION9()     Sets the current record's "CM_OBLIGACION_9" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION10()    Sets the current record's "CM_OBLIGACION_10" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION11()    Sets the current record's "CM_OBLIGACION_11" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION12()    Sets the current record's "CM_OBLIGACION_12" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION13()    Sets the current record's "CM_OBLIGACION_13" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION14()    Sets the current record's "CM_OBLIGACION_14" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION15()    Sets the current record's "CM_OBLIGACION_15" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION16()    Sets the current record's "CM_OBLIGACION_16" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION17()    Sets the current record's "CM_OBLIGACION_17" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION18()    Sets the current record's "CM_OBLIGACION_18" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION19()    Sets the current record's "CM_OBLIGACION_19" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION20()    Sets the current record's "CM_OBLIGACION_20" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION21()    Sets the current record's "CM_OBLIGACION_21" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION22()    Sets the current record's "CM_OBLIGACION_22" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION23()    Sets the current record's "CM_OBLIGACION_23" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION24()    Sets the current record's "CM_OBLIGACION_24" value
 * @method CM_OBLIGACION_VAL setCMOBLIGACION25()    Sets the current record's "CM_OBLIGACION_25" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCM_OBLIGACION_VAL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CM_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('vigencia', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('id_caja_menor', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

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

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

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_4', array(
             'local' => 'vigencia',
             'foreign' => 'id_obligacion'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_5', array(
             'local' => 'id_caja_menor',
             'foreign' => 'id_obligacion'));

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

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

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

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_9', array(
             'local' => 'vigencia',
             'foreign' => 'secuencia'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_10', array(
             'local' => 'id_caja_menor',
             'foreign' => 'secuencia'));

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

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

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

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_14', array(
             'local' => 'vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_15', array(
             'local' => 'id_caja_menor',
             'foreign' => 'id_vigencia'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_16', array(
             'local' => 'id_obligacion',
             'foreign' => 'vigencia'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_17', array(
             'local' => 'secuencia',
             'foreign' => 'vigencia'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_18', array(
             'local' => 'id_vigencia',
             'foreign' => 'vigencia'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_19', array(
             'local' => 'vigencia',
             'foreign' => 'vigencia'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_20', array(
             'local' => 'id_caja_menor',
             'foreign' => 'vigencia'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_21', array(
             'local' => 'id_obligacion',
             'foreign' => 'id_caja_menor'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_22', array(
             'local' => 'secuencia',
             'foreign' => 'id_caja_menor'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_23', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_caja_menor'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_24', array(
             'local' => 'vigencia',
             'foreign' => 'id_caja_menor'));

        $this->hasOne('CM_OBLIGACION as CM_OBLIGACION_25', array(
             'local' => 'id_caja_menor',
             'foreign' => 'id_caja_menor'));
    }
}