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

/**
 * BaseNO_CAL_RETEFUENTE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_calc_retefuente
 * @property integer $id_periodo
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property timestamp $fecha_ingreso
 * @property integer $diastot
 * @property decimal $totdev
 * @property decimal $apopen
 * @property decimal $apofsp
 * @property decimal $apovol
 * @property decimal $subtot1
 * @property decimal $c25_exec
 * @property decimal $subtot2
 * @property decimal $dividido13
 * @property decimal $aposal_obl
 * @property decimal $diasal_obl
 * @property decimal $des_salobl
 * @property decimal $cer_saledu
 * @property decimal $max_saledu
 * @property decimal $des_saledu
 * @property decimal $cer_intere
 * @property decimal $max_intere
 * @property decimal $des_intere
 * @property decimal $ingr_prome
 * @property decimal $prom_uvts
 * @property decimal $tar_margi
 * @property decimal $men_prouvt
 * @property decimal $maspuntos
 * @property decimal $reten_uvts
 * @property decimal $reten
 * @property decimal $reten_ante
 * @property decimal $cer_cerdep
 * @property decimal $max_cerdep
 * @property decimal $des_cerdep
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_2
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_3
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_4
 * 
 * @method integer           getIdCalcRetefuente()    Returns the current record's "id_calc_retefuente" value
 * @method integer           getIdPeriodo()           Returns the current record's "id_periodo" 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 timestamp         getFechaIngreso()        Returns the current record's "fecha_ingreso" value
 * @method integer           getDiastot()             Returns the current record's "diastot" value
 * @method decimal           getTotdev()              Returns the current record's "totdev" value
 * @method decimal           getApopen()              Returns the current record's "apopen" value
 * @method decimal           getApofsp()              Returns the current record's "apofsp" value
 * @method decimal           getApovol()              Returns the current record's "apovol" value
 * @method decimal           getSubtot1()             Returns the current record's "subtot1" value
 * @method decimal           getC25Exec()             Returns the current record's "c25_exec" value
 * @method decimal           getSubtot2()             Returns the current record's "subtot2" value
 * @method decimal           getDividido13()          Returns the current record's "dividido13" value
 * @method decimal           getAposalObl()           Returns the current record's "aposal_obl" value
 * @method decimal           getDiasalObl()           Returns the current record's "diasal_obl" value
 * @method decimal           getDesSalobl()           Returns the current record's "des_salobl" value
 * @method decimal           getCerSaledu()           Returns the current record's "cer_saledu" value
 * @method decimal           getMaxSaledu()           Returns the current record's "max_saledu" value
 * @method decimal           getDesSaledu()           Returns the current record's "des_saledu" value
 * @method decimal           getCerIntere()           Returns the current record's "cer_intere" value
 * @method decimal           getMaxIntere()           Returns the current record's "max_intere" value
 * @method decimal           getDesIntere()           Returns the current record's "des_intere" value
 * @method decimal           getIngrProme()           Returns the current record's "ingr_prome" value
 * @method decimal           getPromUvts()            Returns the current record's "prom_uvts" value
 * @method decimal           getTarMargi()            Returns the current record's "tar_margi" value
 * @method decimal           getMenProuvt()           Returns the current record's "men_prouvt" value
 * @method decimal           getMaspuntos()           Returns the current record's "maspuntos" value
 * @method decimal           getRetenUvts()           Returns the current record's "reten_uvts" value
 * @method decimal           getReten()               Returns the current record's "reten" value
 * @method decimal           getRetenAnte()           Returns the current record's "reten_ante" value
 * @method decimal           getCerCerdep()           Returns the current record's "cer_cerdep" value
 * @method decimal           getMaxCerdep()           Returns the current record's "max_cerdep" value
 * @method decimal           getDesCerdep()           Returns the current record's "des_cerdep" 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_CAL_RETEFUENTE setIdCalcRetefuente()    Sets the current record's "id_calc_retefuente" value
 * @method NO_CAL_RETEFUENTE setIdPeriodo()           Sets the current record's "id_periodo" value
 * @method NO_CAL_RETEFUENTE setIdTipoDoc()           Sets the current record's "id_tipo_doc" value
 * @method NO_CAL_RETEFUENTE setNumDoc()              Sets the current record's "num_doc" value
 * @method NO_CAL_RETEFUENTE setFechaIngreso()        Sets the current record's "fecha_ingreso" value
 * @method NO_CAL_RETEFUENTE setDiastot()             Sets the current record's "diastot" value
 * @method NO_CAL_RETEFUENTE setTotdev()              Sets the current record's "totdev" value
 * @method NO_CAL_RETEFUENTE setApopen()              Sets the current record's "apopen" value
 * @method NO_CAL_RETEFUENTE setApofsp()              Sets the current record's "apofsp" value
 * @method NO_CAL_RETEFUENTE setApovol()              Sets the current record's "apovol" value
 * @method NO_CAL_RETEFUENTE setSubtot1()             Sets the current record's "subtot1" value
 * @method NO_CAL_RETEFUENTE setC25Exec()             Sets the current record's "c25_exec" value
 * @method NO_CAL_RETEFUENTE setSubtot2()             Sets the current record's "subtot2" value
 * @method NO_CAL_RETEFUENTE setDividido13()          Sets the current record's "dividido13" value
 * @method NO_CAL_RETEFUENTE setAposalObl()           Sets the current record's "aposal_obl" value
 * @method NO_CAL_RETEFUENTE setDiasalObl()           Sets the current record's "diasal_obl" value
 * @method NO_CAL_RETEFUENTE setDesSalobl()           Sets the current record's "des_salobl" value
 * @method NO_CAL_RETEFUENTE setCerSaledu()           Sets the current record's "cer_saledu" value
 * @method NO_CAL_RETEFUENTE setMaxSaledu()           Sets the current record's "max_saledu" value
 * @method NO_CAL_RETEFUENTE setDesSaledu()           Sets the current record's "des_saledu" value
 * @method NO_CAL_RETEFUENTE setCerIntere()           Sets the current record's "cer_intere" value
 * @method NO_CAL_RETEFUENTE setMaxIntere()           Sets the current record's "max_intere" value
 * @method NO_CAL_RETEFUENTE setDesIntere()           Sets the current record's "des_intere" value
 * @method NO_CAL_RETEFUENTE setIngrProme()           Sets the current record's "ingr_prome" value
 * @method NO_CAL_RETEFUENTE setPromUvts()            Sets the current record's "prom_uvts" value
 * @method NO_CAL_RETEFUENTE setTarMargi()            Sets the current record's "tar_margi" value
 * @method NO_CAL_RETEFUENTE setMenProuvt()           Sets the current record's "men_prouvt" value
 * @method NO_CAL_RETEFUENTE setMaspuntos()           Sets the current record's "maspuntos" value
 * @method NO_CAL_RETEFUENTE setRetenUvts()           Sets the current record's "reten_uvts" value
 * @method NO_CAL_RETEFUENTE setReten()               Sets the current record's "reten" value
 * @method NO_CAL_RETEFUENTE setRetenAnte()           Sets the current record's "reten_ante" value
 * @method NO_CAL_RETEFUENTE setCerCerdep()           Sets the current record's "cer_cerdep" value
 * @method NO_CAL_RETEFUENTE setMaxCerdep()           Sets the current record's "max_cerdep" value
 * @method NO_CAL_RETEFUENTE setDesCerdep()           Sets the current record's "des_cerdep" value
 * @method NO_CAL_RETEFUENTE setDATOSFUNCIONARIO()    Sets the current record's "DATOS_FUNCIONARIO" value
 * @method NO_CAL_RETEFUENTE setDATOSFUNCIONARIO2()   Sets the current record's "DATOS_FUNCIONARIO_2" value
 * @method NO_CAL_RETEFUENTE setDATOSFUNCIONARIO3()   Sets the current record's "DATOS_FUNCIONARIO_3" value
 * @method NO_CAL_RETEFUENTE setDATOSFUNCIONARIO4()   Sets the current record's "DATOS_FUNCIONARIO_4" 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_CAL_RETEFUENTE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_CAL_RETEFUENTE');
        $this->hasColumn('id_calc_retefuente', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_periodo', '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('fecha_ingreso', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('diastot', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('totdev', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('apopen', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('apofsp', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('apovol', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('subtot1', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('c25_exec', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('subtot2', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('dividido13', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('aposal_obl', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('diasal_obl', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('des_salobl', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('cer_saledu', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('max_saledu', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('des_saledu', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('cer_intere', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('max_intere', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('des_intere', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ingr_prome', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('prom_uvts', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tar_margi', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('men_prouvt', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('maspuntos', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('reten_uvts', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('reten', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('reten_ante', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('cer_cerdep', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('max_cerdep', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('des_cerdep', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             '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'));
    }
}