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

/**
 * BaseNO_PERIODO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_periodo
 * @property integer $id_anhos
 * @property integer $id_meses
 * @property timestamp $fecha_ini
 * @property timestamp $fecha_fin
 * @property integer $id_tipo_periodo
 * @property integer $estado
 * @property timestamp $fecha_cierre
 * @property timestamp $fecha_cierre_nov
 * @property integer $activo
 * @property integer $max_ded_noley
 * @property timestamp $fecha_pago
 * @property string $num_doc_pago
 * @property NO_TIPO_PERIODO $NO_TIPO_PERIODO
 * @property Doctrine_Collection $NO_UPC_ADICIONAL
 * @property Doctrine_Collection $NO_PROMEDIO_PERIODO
 * @property Doctrine_Collection $NO_NOV_TIP_NOMBRA
 * @property Doctrine_Collection $NO_NOV_DED_ADIC
 * @property Doctrine_Collection $NO_NOVEDAD_VAC
 * @property Doctrine_Collection $NO_NOVEDAD_PERSONAL
 * @property Doctrine_Collection $NO_NOVEDAD_KARDEX
 * @property Doctrine_Collection $NO_NOMBRAMIENTO
 * @property Doctrine_Collection $NO_MODIFICA_RETEFUENTE
 * @property Doctrine_Collection $NO_LOTE_HR_EXTRA
 * @property Doctrine_Collection $NO_LIQUIDA_NOMINA
 * @property Doctrine_Collection $NO_LIQUIDA_NOMINA_7
 * @property Doctrine_Collection $NO_LIQUIDA_EXTRA
 * @property Doctrine_Collection $NO_LIQUIDA_EXTRA_9
 * @property Doctrine_Collection $NO_LIQUIDA_APORTE
 * @property Doctrine_Collection $NO_DED_NOLEY
 * @property Doctrine_Collection $NO_DED_NOLEY_8
 * @property Doctrine_Collection $NO_DED_NOLEY_9
 * @property Doctrine_Collection $NO_CONCEPTO_PERIODO
 * @property Doctrine_Collection $NO_CONCEPTO_PERIODO_3
 * @property Doctrine_Collection $NO_CESANTIA
 * @property Doctrine_Collection $NO_CAL_RETEFUENTE_HIST
 * @property Doctrine_Collection $NO_AUTORIZACION
 * @property Doctrine_Collection $NO_ANUL_NOMBRAMIENTO
 * @property Doctrine_Collection $NO_AJUSTE_NOMINA
 * @property Doctrine_Collection $NO_AFILIA_FONDO
 * 
 * @method integer             getIdPeriodo()              Returns the current record's "id_periodo" value
 * @method integer             getIdAnhos()                Returns the current record's "id_anhos" value
 * @method integer             getIdMeses()                Returns the current record's "id_meses" value
 * @method timestamp           getFechaIni()               Returns the current record's "fecha_ini" value
 * @method timestamp           getFechaFin()               Returns the current record's "fecha_fin" value
 * @method integer             getIdTipoPeriodo()          Returns the current record's "id_tipo_periodo" value
 * @method integer             getEstado()                 Returns the current record's "estado" value
 * @method timestamp           getFechaCierre()            Returns the current record's "fecha_cierre" value
 * @method timestamp           getFechaCierreNov()         Returns the current record's "fecha_cierre_nov" value
 * @method integer             getActivo()                 Returns the current record's "activo" value
 * @method integer             getMaxDedNoley()            Returns the current record's "max_ded_noley" value
 * @method timestamp           getFechaPago()              Returns the current record's "fecha_pago" value
 * @method string              getNumDocPago()             Returns the current record's "num_doc_pago" value
 * @method NO_TIPO_PERIODO     getNOTIPOPERIODO()          Returns the current record's "NO_TIPO_PERIODO" value
 * @method Doctrine_Collection getNOUPCADICIONAL()         Returns the current record's "NO_UPC_ADICIONAL" collection
 * @method Doctrine_Collection getNOPROMEDIOPERIODO()      Returns the current record's "NO_PROMEDIO_PERIODO" collection
 * @method Doctrine_Collection getNONOVTIPNOMBRA()         Returns the current record's "NO_NOV_TIP_NOMBRA" collection
 * @method Doctrine_Collection getNONOVDEDADIC()           Returns the current record's "NO_NOV_DED_ADIC" collection
 * @method Doctrine_Collection getNONOVEDADVAC()           Returns the current record's "NO_NOVEDAD_VAC" collection
 * @method Doctrine_Collection getNONOVEDADPERSONAL()      Returns the current record's "NO_NOVEDAD_PERSONAL" collection
 * @method Doctrine_Collection getNONOVEDADKARDEX()        Returns the current record's "NO_NOVEDAD_KARDEX" collection
 * @method Doctrine_Collection getNONOMBRAMIENTO()         Returns the current record's "NO_NOMBRAMIENTO" collection
 * @method Doctrine_Collection getNOMODIFICARETEFUENTE()   Returns the current record's "NO_MODIFICA_RETEFUENTE" collection
 * @method Doctrine_Collection getNOLOTEHREXTRA()          Returns the current record's "NO_LOTE_HR_EXTRA" collection
 * @method Doctrine_Collection getNOLIQUIDANOMINA()        Returns the current record's "NO_LIQUIDA_NOMINA" collection
 * @method Doctrine_Collection getNOLIQUIDANOMINA7()       Returns the current record's "NO_LIQUIDA_NOMINA_7" collection
 * @method Doctrine_Collection getNOLIQUIDAEXTRA()         Returns the current record's "NO_LIQUIDA_EXTRA" collection
 * @method Doctrine_Collection getNOLIQUIDAEXTRA9()        Returns the current record's "NO_LIQUIDA_EXTRA_9" collection
 * @method Doctrine_Collection getNOLIQUIDAAPORTE()        Returns the current record's "NO_LIQUIDA_APORTE" collection
 * @method Doctrine_Collection getNODEDNOLEY()             Returns the current record's "NO_DED_NOLEY" collection
 * @method Doctrine_Collection getNODEDNOLEY8()            Returns the current record's "NO_DED_NOLEY_8" collection
 * @method Doctrine_Collection getNODEDNOLEY9()            Returns the current record's "NO_DED_NOLEY_9" collection
 * @method Doctrine_Collection getNOCONCEPTOPERIODO()      Returns the current record's "NO_CONCEPTO_PERIODO" collection
 * @method Doctrine_Collection getNOCONCEPTOPERIODO3()     Returns the current record's "NO_CONCEPTO_PERIODO_3" collection
 * @method Doctrine_Collection getNOCESANTIA()             Returns the current record's "NO_CESANTIA" collection
 * @method Doctrine_Collection getNOCALRETEFUENTEHIST()    Returns the current record's "NO_CAL_RETEFUENTE_HIST" collection
 * @method Doctrine_Collection getNOAUTORIZACION()         Returns the current record's "NO_AUTORIZACION" collection
 * @method Doctrine_Collection getNOANULNOMBRAMIENTO()     Returns the current record's "NO_ANUL_NOMBRAMIENTO" collection
 * @method Doctrine_Collection getNOAJUSTENOMINA()         Returns the current record's "NO_AJUSTE_NOMINA" collection
 * @method Doctrine_Collection getNOAFILIAFONDO()          Returns the current record's "NO_AFILIA_FONDO" collection
 * @method NO_PERIODO          setIdPeriodo()              Sets the current record's "id_periodo" value
 * @method NO_PERIODO          setIdAnhos()                Sets the current record's "id_anhos" value
 * @method NO_PERIODO          setIdMeses()                Sets the current record's "id_meses" value
 * @method NO_PERIODO          setFechaIni()               Sets the current record's "fecha_ini" value
 * @method NO_PERIODO          setFechaFin()               Sets the current record's "fecha_fin" value
 * @method NO_PERIODO          setIdTipoPeriodo()          Sets the current record's "id_tipo_periodo" value
 * @method NO_PERIODO          setEstado()                 Sets the current record's "estado" value
 * @method NO_PERIODO          setFechaCierre()            Sets the current record's "fecha_cierre" value
 * @method NO_PERIODO          setFechaCierreNov()         Sets the current record's "fecha_cierre_nov" value
 * @method NO_PERIODO          setActivo()                 Sets the current record's "activo" value
 * @method NO_PERIODO          setMaxDedNoley()            Sets the current record's "max_ded_noley" value
 * @method NO_PERIODO          setFechaPago()              Sets the current record's "fecha_pago" value
 * @method NO_PERIODO          setNumDocPago()             Sets the current record's "num_doc_pago" value
 * @method NO_PERIODO          setNOTIPOPERIODO()          Sets the current record's "NO_TIPO_PERIODO" value
 * @method NO_PERIODO          setNOUPCADICIONAL()         Sets the current record's "NO_UPC_ADICIONAL" collection
 * @method NO_PERIODO          setNOPROMEDIOPERIODO()      Sets the current record's "NO_PROMEDIO_PERIODO" collection
 * @method NO_PERIODO          setNONOVTIPNOMBRA()         Sets the current record's "NO_NOV_TIP_NOMBRA" collection
 * @method NO_PERIODO          setNONOVDEDADIC()           Sets the current record's "NO_NOV_DED_ADIC" collection
 * @method NO_PERIODO          setNONOVEDADVAC()           Sets the current record's "NO_NOVEDAD_VAC" collection
 * @method NO_PERIODO          setNONOVEDADPERSONAL()      Sets the current record's "NO_NOVEDAD_PERSONAL" collection
 * @method NO_PERIODO          setNONOVEDADKARDEX()        Sets the current record's "NO_NOVEDAD_KARDEX" collection
 * @method NO_PERIODO          setNONOMBRAMIENTO()         Sets the current record's "NO_NOMBRAMIENTO" collection
 * @method NO_PERIODO          setNOMODIFICARETEFUENTE()   Sets the current record's "NO_MODIFICA_RETEFUENTE" collection
 * @method NO_PERIODO          setNOLOTEHREXTRA()          Sets the current record's "NO_LOTE_HR_EXTRA" collection
 * @method NO_PERIODO          setNOLIQUIDANOMINA()        Sets the current record's "NO_LIQUIDA_NOMINA" collection
 * @method NO_PERIODO          setNOLIQUIDANOMINA7()       Sets the current record's "NO_LIQUIDA_NOMINA_7" collection
 * @method NO_PERIODO          setNOLIQUIDAEXTRA()         Sets the current record's "NO_LIQUIDA_EXTRA" collection
 * @method NO_PERIODO          setNOLIQUIDAEXTRA9()        Sets the current record's "NO_LIQUIDA_EXTRA_9" collection
 * @method NO_PERIODO          setNOLIQUIDAAPORTE()        Sets the current record's "NO_LIQUIDA_APORTE" collection
 * @method NO_PERIODO          setNODEDNOLEY()             Sets the current record's "NO_DED_NOLEY" collection
 * @method NO_PERIODO          setNODEDNOLEY8()            Sets the current record's "NO_DED_NOLEY_8" collection
 * @method NO_PERIODO          setNODEDNOLEY9()            Sets the current record's "NO_DED_NOLEY_9" collection
 * @method NO_PERIODO          setNOCONCEPTOPERIODO()      Sets the current record's "NO_CONCEPTO_PERIODO" collection
 * @method NO_PERIODO          setNOCONCEPTOPERIODO3()     Sets the current record's "NO_CONCEPTO_PERIODO_3" collection
 * @method NO_PERIODO          setNOCESANTIA()             Sets the current record's "NO_CESANTIA" collection
 * @method NO_PERIODO          setNOCALRETEFUENTEHIST()    Sets the current record's "NO_CAL_RETEFUENTE_HIST" collection
 * @method NO_PERIODO          setNOAUTORIZACION()         Sets the current record's "NO_AUTORIZACION" collection
 * @method NO_PERIODO          setNOANULNOMBRAMIENTO()     Sets the current record's "NO_ANUL_NOMBRAMIENTO" collection
 * @method NO_PERIODO          setNOAJUSTENOMINA()         Sets the current record's "NO_AJUSTE_NOMINA" collection
 * @method NO_PERIODO          setNOAFILIAFONDO()          Sets the current record's "NO_AFILIA_FONDO" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_PERIODO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_PERIODO');
        $this->hasColumn('id_periodo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_anhos', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_meses', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_ini', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_tipo_periodo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_cierre', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_cierre_nov', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('activo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('max_ded_noley', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_pago', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('num_doc_pago', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasMany('NO_UPC_ADICIONAL', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_PROMEDIO_PERIODO', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_NOV_TIP_NOMBRA', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_NOV_DED_ADIC', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_NOVEDAD_VAC', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_NOVEDAD_PERSONAL', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_NOVEDAD_KARDEX', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_NOMBRAMIENTO', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_MODIFICA_RETEFUENTE', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_LOTE_HR_EXTRA', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_LIQUIDA_NOMINA', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_LIQUIDA_NOMINA as NO_LIQUIDA_NOMINA_7', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo_ajuste'));

        $this->hasMany('NO_LIQUIDA_EXTRA', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_LIQUIDA_EXTRA as NO_LIQUIDA_EXTRA_9', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo_nov'));

        $this->hasMany('NO_LIQUIDA_APORTE', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_DED_NOLEY', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_DED_NOLEY as NO_DED_NOLEY_8', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo_ini'));

        $this->hasMany('NO_DED_NOLEY as NO_DED_NOLEY_9', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo_fin'));

        $this->hasMany('NO_CONCEPTO_PERIODO', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo_ajuste'));

        $this->hasMany('NO_CONCEPTO_PERIODO as NO_CONCEPTO_PERIODO_3', array(
             'local' => 'id_periodo',
             'foreign' => 'periodo'));

        $this->hasMany('NO_CESANTIA', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_CAL_RETEFUENTE_HIST', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_AUTORIZACION', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_ANUL_NOMBRAMIENTO', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_AJUSTE_NOMINA', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasMany('NO_AFILIA_FONDO', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));
    }
}