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

/**
 * BaseCONT_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 decimal $aporte_func
 * @property decimal $aporte_patrono
 * @property integer $id_tipo_aporte
 * @property decimal $porcentaje_func
 * @property decimal $porcentaje_patrono
 * @property integer $tarifa
 * @property integer $id_periodo
 * @property CONTRATISTA $CONTRATISTA
 * @property CONTRATISTA $CONTRATISTA_2
 * @property CONTRATISTA $CONTRATISTA_3
 * @property CONTRATISTA $CONTRATISTA_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 decimal             getAporteFunc()         Returns the current record's "aporte_func" value
 * @method decimal             getAportePatrono()      Returns the current record's "aporte_patrono" value
 * @method integer             getIdTipoAporte()       Returns the current record's "id_tipo_aporte" value
 * @method decimal             getPorcentajeFunc()     Returns the current record's "porcentaje_func" value
 * @method decimal             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 CONTRATISTA         getCONTRATISTA()        Returns the current record's "CONTRATISTA" value
 * @method CONTRATISTA         getCONTRATISTA2()       Returns the current record's "CONTRATISTA_2" value
 * @method CONTRATISTA         getCONTRATISTA3()       Returns the current record's "CONTRATISTA_3" value
 * @method CONTRATISTA         getCONTRATISTA4()       Returns the current record's "CONTRATISTA_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 CONT_LIQUIDA_APORTE setIdLiquidaAporte()    Sets the current record's "id_liquida_aporte" value
 * @method CONT_LIQUIDA_APORTE setIdClaseFondo()       Sets the current record's "id_clase_fondo" value
 * @method CONT_LIQUIDA_APORTE setIdMaeFondos()        Sets the current record's "id_mae_fondos" value
 * @method CONT_LIQUIDA_APORTE setIdConcepNomina()     Sets the current record's "id_concep_nomina" value
 * @method CONT_LIQUIDA_APORTE setIdTipoDoc()          Sets the current record's "id_tipo_doc" value
 * @method CONT_LIQUIDA_APORTE setNumDoc()             Sets the current record's "num_doc" value
 * @method CONT_LIQUIDA_APORTE setValorBase()          Sets the current record's "valor_base" value
 * @method CONT_LIQUIDA_APORTE setNumDias()            Sets the current record's "num_dias" value
 * @method CONT_LIQUIDA_APORTE setAporteFunc()         Sets the current record's "aporte_func" value
 * @method CONT_LIQUIDA_APORTE setAportePatrono()      Sets the current record's "aporte_patrono" value
 * @method CONT_LIQUIDA_APORTE setIdTipoAporte()       Sets the current record's "id_tipo_aporte" value
 * @method CONT_LIQUIDA_APORTE setPorcentajeFunc()     Sets the current record's "porcentaje_func" value
 * @method CONT_LIQUIDA_APORTE setPorcentajePatrono()  Sets the current record's "porcentaje_patrono" value
 * @method CONT_LIQUIDA_APORTE setTarifa()             Sets the current record's "tarifa" value
 * @method CONT_LIQUIDA_APORTE setIdPeriodo()          Sets the current record's "id_periodo" value
 * @method CONT_LIQUIDA_APORTE setCONTRATISTA()        Sets the current record's "CONTRATISTA" value
 * @method CONT_LIQUIDA_APORTE setCONTRATISTA2()       Sets the current record's "CONTRATISTA_2" value
 * @method CONT_LIQUIDA_APORTE setCONTRATISTA3()       Sets the current record's "CONTRATISTA_3" value
 * @method CONT_LIQUIDA_APORTE setCONTRATISTA4()       Sets the current record's "CONTRATISTA_4" value
 * @method CONT_LIQUIDA_APORTE setNOCLASEFONDO()       Sets the current record's "NO_CLASE_FONDO" value
 * @method CONT_LIQUIDA_APORTE setNOCONCEPNOMINA()     Sets the current record's "NO_CONCEP_NOMINA" value
 * @method CONT_LIQUIDA_APORTE setNOMAEFONDOS()        Sets the current record's "NO_MAE_FONDOS" value
 * @method CONT_LIQUIDA_APORTE setNOPERIODO()          Sets the current record's "NO_PERIODO" value
 * @method CONT_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 BaseCONT_LIQUIDA_APORTE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CONT_LIQUIDA_APORTE');
        $this->hasColumn('id_liquida_aporte', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_clase_fondo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_fondos', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_concep_nomina', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $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,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_dias', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('aporte_func', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('aporte_patrono', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_aporte', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('porcentaje_func', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('porcentaje_patrono', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tarifa', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_periodo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

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

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

        $this->hasOne('CONTRATISTA as CONTRATISTA_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'));
    }
}