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

/**
 * BaseRE_OBL_DETALLE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_obligacion
 * @property integer $id_distribucion
 * @property integer $secuencia
 * @property integer $id_tipo_beneficiario
 * @property decimal $valor_bruto
 * @property decimal $valor_dto
 * @property decimal $valor_gravamen
 * @property decimal $valor_girar
 * @property integer $id_descto
 * @property integer $id_mae_ter
 * @property integer $pago
 * @property integer $id_des_pago
 * @property timestamp $fecha_aplica
 * @property integer $resul_giro
 * @property RE_DESCUENTOS $RE_DESCUENTOS
 * @property INTERCEROS $INTERCEROS
 * @property RE_DES_PAGO $RE_DES_PAGO
 * @property RE_TIPO_BENEFICIARIO $RE_TIPO_BENEFICIARIO
 * @property RE_OBLIGACION $RE_OBLIGACION
 * @property RE_OBLIGACION $RE_OBLIGACION_6
 * @property RE_OBLIGACION $RE_OBLIGACION_7
 * @property RE_OBLIGACION $RE_OBLIGACION_8
 * 
 * @method integer              getIdObligacion()         Returns the current record's "id_obligacion" value
 * @method integer              getIdDistribucion()       Returns the current record's "id_distribucion" value
 * @method integer              getSecuencia()            Returns the current record's "secuencia" value
 * @method integer              getIdTipoBeneficiario()   Returns the current record's "id_tipo_beneficiario" value
 * @method decimal              getValorBruto()           Returns the current record's "valor_bruto" value
 * @method decimal              getValorDto()             Returns the current record's "valor_dto" value
 * @method decimal              getValorGravamen()        Returns the current record's "valor_gravamen" value
 * @method decimal              getValorGirar()           Returns the current record's "valor_girar" value
 * @method integer              getIdDescto()             Returns the current record's "id_descto" value
 * @method integer              getIdMaeTer()             Returns the current record's "id_mae_ter" value
 * @method integer              getPago()                 Returns the current record's "pago" value
 * @method integer              getIdDesPago()            Returns the current record's "id_des_pago" value
 * @method timestamp            getFechaAplica()          Returns the current record's "fecha_aplica" value
 * @method integer              getResulGiro()            Returns the current record's "resul_giro" value
 * @method RE_DESCUENTOS        getREDESCUENTOS()         Returns the current record's "RE_DESCUENTOS" value
 * @method INTERCEROS           getINTERCEROS()           Returns the current record's "INTERCEROS" value
 * @method RE_DES_PAGO          getREDESPAGO()            Returns the current record's "RE_DES_PAGO" value
 * @method RE_TIPO_BENEFICIARIO getRETIPOBENEFICIARIO()   Returns the current record's "RE_TIPO_BENEFICIARIO" value
 * @method RE_OBLIGACION        getREOBLIGACION()         Returns the current record's "RE_OBLIGACION" value
 * @method RE_OBLIGACION        getREOBLIGACION6()        Returns the current record's "RE_OBLIGACION_6" value
 * @method RE_OBLIGACION        getREOBLIGACION7()        Returns the current record's "RE_OBLIGACION_7" value
 * @method RE_OBLIGACION        getREOBLIGACION8()        Returns the current record's "RE_OBLIGACION_8" value
 * @method RE_OBL_DETALLE       setIdObligacion()         Sets the current record's "id_obligacion" value
 * @method RE_OBL_DETALLE       setIdDistribucion()       Sets the current record's "id_distribucion" value
 * @method RE_OBL_DETALLE       setSecuencia()            Sets the current record's "secuencia" value
 * @method RE_OBL_DETALLE       setIdTipoBeneficiario()   Sets the current record's "id_tipo_beneficiario" value
 * @method RE_OBL_DETALLE       setValorBruto()           Sets the current record's "valor_bruto" value
 * @method RE_OBL_DETALLE       setValorDto()             Sets the current record's "valor_dto" value
 * @method RE_OBL_DETALLE       setValorGravamen()        Sets the current record's "valor_gravamen" value
 * @method RE_OBL_DETALLE       setValorGirar()           Sets the current record's "valor_girar" value
 * @method RE_OBL_DETALLE       setIdDescto()             Sets the current record's "id_descto" value
 * @method RE_OBL_DETALLE       setIdMaeTer()             Sets the current record's "id_mae_ter" value
 * @method RE_OBL_DETALLE       setPago()                 Sets the current record's "pago" value
 * @method RE_OBL_DETALLE       setIdDesPago()            Sets the current record's "id_des_pago" value
 * @method RE_OBL_DETALLE       setFechaAplica()          Sets the current record's "fecha_aplica" value
 * @method RE_OBL_DETALLE       setResulGiro()            Sets the current record's "resul_giro" value
 * @method RE_OBL_DETALLE       setREDESCUENTOS()         Sets the current record's "RE_DESCUENTOS" value
 * @method RE_OBL_DETALLE       setINTERCEROS()           Sets the current record's "INTERCEROS" value
 * @method RE_OBL_DETALLE       setREDESPAGO()            Sets the current record's "RE_DES_PAGO" value
 * @method RE_OBL_DETALLE       setRETIPOBENEFICIARIO()   Sets the current record's "RE_TIPO_BENEFICIARIO" value
 * @method RE_OBL_DETALLE       setREOBLIGACION()         Sets the current record's "RE_OBLIGACION" value
 * @method RE_OBL_DETALLE       setREOBLIGACION6()        Sets the current record's "RE_OBLIGACION_6" value
 * @method RE_OBL_DETALLE       setREOBLIGACION7()        Sets the current record's "RE_OBLIGACION_7" value
 * @method RE_OBL_DETALLE       setREOBLIGACION8()        Sets the current record's "RE_OBLIGACION_8" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_OBL_DETALLE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_OBL_DETALLE');
        $this->hasColumn('id_obligacion', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_distribucion', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('secuencia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_beneficiario', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_bruto', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_dto', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_gravamen', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_girar', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('id_descto', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('pago', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_des_pago', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_aplica', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('resul_giro', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => 'NULL ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('RE_DES_PAGO', array(
             'local' => 'id_des_pago',
             'foreign' => 'id_des_pago'));

        $this->hasOne('RE_TIPO_BENEFICIARIO', array(
             'local' => 'id_tipo_beneficiario',
             'foreign' => 'id_tipo_beneficiario'));

        $this->hasOne('RE_OBLIGACION', array(
             'local' => 'id_obligacion',
             'foreign' => 'id_obligacion'));

        $this->hasOne('RE_OBLIGACION as RE_OBLIGACION_6', array(
             'local' => 'id_distribucion',
             'foreign' => 'id_obligacion'));

        $this->hasOne('RE_OBLIGACION as RE_OBLIGACION_7', array(
             'local' => 'id_obligacion',
             'foreign' => 'id_distribucion'));

        $this->hasOne('RE_OBLIGACION as RE_OBLIGACION_8', array(
             'local' => 'id_distribucion',
             'foreign' => 'id_distribucion'));
    }
}