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

/**
 * BaseNO_LIQUIDA_APORTE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_liquida_aporte
 * @property integer $id_clase_fondo
 * @property integer $id_mae_fondos
 * @property integer $id_concep_nomina
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property decimal $valor_base
 * @property integer $num_dias
 * @property integer $aporte_func
 * @property integer $aporte_patrono
 * @property integer $id_cen_op
 * @property integer $id_tipo_aporte
 * @property integer $porcentaje_func
 * @property integer $porcentaje_patrono
 * @property integer $tarifa
 * @property integer $id_periodo
 * @property integer $upc_adicio
 * @property decimal $valor_base_fsp
 * @property integer $id_tae
 * @property integer $id_tap
 * @property string $tipo_planilla
 * @property string $num_planilla
 * @property timestamp $fecha_pago
 * @property integer $aporte_patrono_licnorem
 * @property integer $num_dias_licnorem
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_2
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_3
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_4
 * @property NO_CLASE_FONDO $NO_CLASE_FONDO
 * @property NO_CONCEP_NOMINA $NO_CONCEP_NOMINA
 * @property NO_MAE_FONDOS $NO_MAE_FONDOS
 * @property NO_PERIODO $NO_PERIODO
 * @property NO_TIPO_APORTE $NO_TIPO_APORTE
 * 
 * @method integer           getIdLiquidaAporte()         Returns the current record's "id_liquida_aporte" value
 * @method integer           getIdClaseFondo()            Returns the current record's "id_clase_fondo" value
 * @method integer           getIdMaeFondos()             Returns the current record's "id_mae_fondos" value
 * @method integer           getIdConcepNomina()          Returns the current record's "id_concep_nomina" value
 * @method integer           getIdTipoDoc()               Returns the current record's "id_tipo_doc" value
 * @method string            getNumDoc()                  Returns the current record's "num_doc" value
 * @method decimal           getValorBase()               Returns the current record's "valor_base" value
 * @method integer           getNumDias()                 Returns the current record's "num_dias" value
 * @method integer           getAporteFunc()              Returns the current record's "aporte_func" value
 * @method integer           getAportePatrono()           Returns the current record's "aporte_patrono" value
 * @method integer           getIdCenOp()                 Returns the current record's "id_cen_op" value
 * @method integer           getIdTipoAporte()            Returns the current record's "id_tipo_aporte" value
 * @method integer           getPorcentajeFunc()          Returns the current record's "porcentaje_func" value
 * @method integer           getPorcentajePatrono()       Returns the current record's "porcentaje_patrono" value
 * @method integer           getTarifa()                  Returns the current record's "tarifa" value
 * @method integer           getIdPeriodo()               Returns the current record's "id_periodo" value
 * @method integer           getUpcAdicio()               Returns the current record's "upc_adicio" value
 * @method decimal           getValorBaseFsp()            Returns the current record's "valor_base_fsp" value
 * @method integer           getIdTae()                   Returns the current record's "id_tae" value
 * @method integer           getIdTap()                   Returns the current record's "id_tap" value
 * @method string            getTipoPlanilla()            Returns the current record's "tipo_planilla" value
 * @method string            getNumPlanilla()             Returns the current record's "num_planilla" value
 * @method timestamp         getFechaPago()               Returns the current record's "fecha_pago" value
 * @method integer           getAportePatronoLicnorem()   Returns the current record's "aporte_patrono_licnorem" value
 * @method integer           getNumDiasLicnorem()         Returns the current record's "num_dias_licnorem" value
 * @method DATOS_FUNCIONARIO getDATOSFUNCIONARIO()        Returns the current record's "DATOS_FUNCIONARIO" value
 * @method DATOS_FUNCIONARIO getDATOSFUNCIONARIO2()       Returns the current record's "DATOS_FUNCIONARIO_2" value
 * @method DATOS_FUNCIONARIO getDATOSFUNCIONARIO3()       Returns the current record's "DATOS_FUNCIONARIO_3" value
 * @method DATOS_FUNCIONARIO getDATOSFUNCIONARIO4()       Returns the current record's "DATOS_FUNCIONARIO_4" value
 * @method NO_CLASE_FONDO    getNOCLASEFONDO()            Returns the current record's "NO_CLASE_FONDO" value
 * @method NO_CONCEP_NOMINA  getNOCONCEPNOMINA()          Returns the current record's "NO_CONCEP_NOMINA" value
 * @method NO_MAE_FONDOS     getNOMAEFONDOS()             Returns the current record's "NO_MAE_FONDOS" value
 * @method NO_PERIODO        getNOPERIODO()               Returns the current record's "NO_PERIODO" value
 * @method NO_TIPO_APORTE    getNOTIPOAPORTE()            Returns the current record's "NO_TIPO_APORTE" value
 * @method NO_LIQUIDA_APORTE setIdLiquidaAporte()         Sets the current record's "id_liquida_aporte" value
 * @method NO_LIQUIDA_APORTE setIdClaseFondo()            Sets the current record's "id_clase_fondo" value
 * @method NO_LIQUIDA_APORTE setIdMaeFondos()             Sets the current record's "id_mae_fondos" value
 * @method NO_LIQUIDA_APORTE setIdConcepNomina()          Sets the current record's "id_concep_nomina" value
 * @method NO_LIQUIDA_APORTE setIdTipoDoc()               Sets the current record's "id_tipo_doc" value
 * @method NO_LIQUIDA_APORTE setNumDoc()                  Sets the current record's "num_doc" value
 * @method NO_LIQUIDA_APORTE setValorBase()               Sets the current record's "valor_base" value
 * @method NO_LIQUIDA_APORTE setNumDias()                 Sets the current record's "num_dias" value
 * @method NO_LIQUIDA_APORTE setAporteFunc()              Sets the current record's "aporte_func" value
 * @method NO_LIQUIDA_APORTE setAportePatrono()           Sets the current record's "aporte_patrono" value
 * @method NO_LIQUIDA_APORTE setIdCenOp()                 Sets the current record's "id_cen_op" value
 * @method NO_LIQUIDA_APORTE setIdTipoAporte()            Sets the current record's "id_tipo_aporte" value
 * @method NO_LIQUIDA_APORTE setPorcentajeFunc()          Sets the current record's "porcentaje_func" value
 * @method NO_LIQUIDA_APORTE setPorcentajePatrono()       Sets the current record's "porcentaje_patrono" value
 * @method NO_LIQUIDA_APORTE setTarifa()                  Sets the current record's "tarifa" value
 * @method NO_LIQUIDA_APORTE setIdPeriodo()               Sets the current record's "id_periodo" value
 * @method NO_LIQUIDA_APORTE setUpcAdicio()               Sets the current record's "upc_adicio" value
 * @method NO_LIQUIDA_APORTE setValorBaseFsp()            Sets the current record's "valor_base_fsp" value
 * @method NO_LIQUIDA_APORTE setIdTae()                   Sets the current record's "id_tae" value
 * @method NO_LIQUIDA_APORTE setIdTap()                   Sets the current record's "id_tap" value
 * @method NO_LIQUIDA_APORTE setTipoPlanilla()            Sets the current record's "tipo_planilla" value
 * @method NO_LIQUIDA_APORTE setNumPlanilla()             Sets the current record's "num_planilla" value
 * @method NO_LIQUIDA_APORTE setFechaPago()               Sets the current record's "fecha_pago" value
 * @method NO_LIQUIDA_APORTE setAportePatronoLicnorem()   Sets the current record's "aporte_patrono_licnorem" value
 * @method NO_LIQUIDA_APORTE setNumDiasLicnorem()         Sets the current record's "num_dias_licnorem" value
 * @method NO_LIQUIDA_APORTE setDATOSFUNCIONARIO()        Sets the current record's "DATOS_FUNCIONARIO" value
 * @method NO_LIQUIDA_APORTE setDATOSFUNCIONARIO2()       Sets the current record's "DATOS_FUNCIONARIO_2" value
 * @method NO_LIQUIDA_APORTE setDATOSFUNCIONARIO3()       Sets the current record's "DATOS_FUNCIONARIO_3" value
 * @method NO_LIQUIDA_APORTE setDATOSFUNCIONARIO4()       Sets the current record's "DATOS_FUNCIONARIO_4" value
 * @method NO_LIQUIDA_APORTE setNOCLASEFONDO()            Sets the current record's "NO_CLASE_FONDO" value
 * @method NO_LIQUIDA_APORTE setNOCONCEPNOMINA()          Sets the current record's "NO_CONCEP_NOMINA" value
 * @method NO_LIQUIDA_APORTE setNOMAEFONDOS()             Sets the current record's "NO_MAE_FONDOS" value
 * @method NO_LIQUIDA_APORTE setNOPERIODO()               Sets the current record's "NO_PERIODO" value
 * @method NO_LIQUIDA_APORTE setNOTIPOAPORTE()            Sets the current record's "NO_TIPO_APORTE" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_LIQUIDA_APORTE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_LIQUIDA_APORTE');
        $this->hasColumn('id_liquida_aporte', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_clase_fondo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_fondos', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_concep_nomina', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_base', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_dias', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('aporte_func', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('aporte_patrono', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_aporte', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('porcentaje_func', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('porcentaje_patrono', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('tarifa', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_periodo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('upc_adicio', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_base_fsp', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('id_tae', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tap', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('tipo_planilla', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '\'A\'',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('num_planilla', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_pago', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('aporte_patrono_licnorem', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('num_dias_licnorem', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('DATOS_FUNCIONARIO as DATOS_FUNCIONARIO_2', array(
             'local' => 'num_doc',
             'foreign' => 'id_tipo_doc'));

        $this->hasOne('DATOS_FUNCIONARIO as DATOS_FUNCIONARIO_3', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'num_doc'));

        $this->hasOne('DATOS_FUNCIONARIO as DATOS_FUNCIONARIO_4', array(
             'local' => 'num_doc',
             'foreign' => 'num_doc'));

        $this->hasOne('NO_CLASE_FONDO', array(
             'local' => 'id_clase_fondo',
             'foreign' => 'id_clase_fondo'));

        $this->hasOne('NO_CONCEP_NOMINA', array(
             'local' => 'id_concep_nomina',
             'foreign' => 'id_concep_nomina'));

        $this->hasOne('NO_MAE_FONDOS', array(
             'local' => 'id_mae_fondos',
             'foreign' => 'id_mae_fondos'));

        $this->hasOne('NO_PERIODO', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasOne('NO_TIPO_APORTE', array(
             'local' => 'id_tipo_aporte',
             'foreign' => 'id_tipo_aporte'));
    }
}