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

/**
 * BaseCM_ANUL_OBLIGACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_anul_obligacion
 * @property integer $id_obligacion
 * @property integer $secuencia
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property string $observaciones
 * @property timestamp $fecha_proceso
 * @property timestamp $fecha_sys
 * @property string $usuario
 * @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            getIdAnulObligacion()   Returns the current record's "id_anul_obligacion" value
 * @method integer            getIdObligacion()       Returns the current record's "id_obligacion" 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 string             getObservaciones()      Returns the current record's "observaciones" value
 * @method timestamp          getFechaProceso()       Returns the current record's "fecha_proceso" value
 * @method timestamp          getFechaSys()           Returns the current record's "fecha_sys" value
 * @method string             getUsuario()            Returns the current record's "usuario" 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_ANUL_OBLIGACION setIdAnulObligacion()   Sets the current record's "id_anul_obligacion" value
 * @method CM_ANUL_OBLIGACION setIdObligacion()       Sets the current record's "id_obligacion" value
 * @method CM_ANUL_OBLIGACION setSecuencia()          Sets the current record's "secuencia" value
 * @method CM_ANUL_OBLIGACION setIdVigencia()         Sets the current record's "id_vigencia" value
 * @method CM_ANUL_OBLIGACION setVigencia()           Sets the current record's "vigencia" value
 * @method CM_ANUL_OBLIGACION setObservaciones()      Sets the current record's "observaciones" value
 * @method CM_ANUL_OBLIGACION setFechaProceso()       Sets the current record's "fecha_proceso" value
 * @method CM_ANUL_OBLIGACION setFechaSys()           Sets the current record's "fecha_sys" value
 * @method CM_ANUL_OBLIGACION setUsuario()            Sets the current record's "usuario" value
 * @method CM_ANUL_OBLIGACION setIdCajaMenor()        Sets the current record's "id_caja_menor" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION()       Sets the current record's "CM_OBLIGACION" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION2()      Sets the current record's "CM_OBLIGACION_2" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION3()      Sets the current record's "CM_OBLIGACION_3" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION4()      Sets the current record's "CM_OBLIGACION_4" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION5()      Sets the current record's "CM_OBLIGACION_5" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION6()      Sets the current record's "CM_OBLIGACION_6" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION7()      Sets the current record's "CM_OBLIGACION_7" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION8()      Sets the current record's "CM_OBLIGACION_8" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION9()      Sets the current record's "CM_OBLIGACION_9" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION10()     Sets the current record's "CM_OBLIGACION_10" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION11()     Sets the current record's "CM_OBLIGACION_11" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION12()     Sets the current record's "CM_OBLIGACION_12" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION13()     Sets the current record's "CM_OBLIGACION_13" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION14()     Sets the current record's "CM_OBLIGACION_14" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION15()     Sets the current record's "CM_OBLIGACION_15" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION16()     Sets the current record's "CM_OBLIGACION_16" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION17()     Sets the current record's "CM_OBLIGACION_17" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION18()     Sets the current record's "CM_OBLIGACION_18" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION19()     Sets the current record's "CM_OBLIGACION_19" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION20()     Sets the current record's "CM_OBLIGACION_20" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION21()     Sets the current record's "CM_OBLIGACION_21" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION22()     Sets the current record's "CM_OBLIGACION_22" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION23()     Sets the current record's "CM_OBLIGACION_23" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION24()     Sets the current record's "CM_OBLIGACION_24" value
 * @method CM_ANUL_OBLIGACION setCMOBLIGACION25()     Sets the current record's "CM_OBLIGACION_25" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCM_ANUL_OBLIGACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CM_ANUL_OBLIGACION');
        $this->hasColumn('id_anul_obligacion', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_obligacion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('secuencia', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('observaciones', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_caja_menor', 'integer', 20, array(
             'notnull' => true,
             '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'));
    }
}