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

/**
 * BaseRH_AP_DEN_EMP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_den_emp
 * @property integer $id_nat_em
 * @property integer $id_area
 * @property integer $id_hora_la
 * @property integer $empl_norma
 * @property integer $t_empl
 * @property integer $id_comp_es
 * @property integer $vaca_def
 * @property integer $id_planta_p
 * @property integer $vaca_temp
 * @property AREA $AREA
 * @property RH_AP_HO_LAB $RH_AP_HO_LAB
 * @property RH_AP_NATURALEZA_EM $RH_AP_NATURALEZA_EM
 * @property RH_AP_PLANTA $RH_AP_PLANTA
 * @property RH_PN_COMPONENTE_ESCALA $RH_PN_COMPONENTE_ESCALA
 * @property Doctrine_Collection $RH_MF_MF
 * @property Doctrine_Collection $RH_AP_PRIMA
 * 
 * @method integer                 getIdDenEmp()                Returns the current record's "id_den_emp" value
 * @method integer                 getIdNatEm()                 Returns the current record's "id_nat_em" value
 * @method integer                 getIdArea()                  Returns the current record's "id_area" value
 * @method integer                 getIdHoraLa()                Returns the current record's "id_hora_la" value
 * @method integer                 getEmplNorma()               Returns the current record's "empl_norma" value
 * @method integer                 getTEmpl()                   Returns the current record's "t_empl" value
 * @method integer                 getIdCompEs()                Returns the current record's "id_comp_es" value
 * @method integer                 getVacaDef()                 Returns the current record's "vaca_def" value
 * @method integer                 getIdPlantaP()               Returns the current record's "id_planta_p" value
 * @method integer                 getVacaTemp()                Returns the current record's "vaca_temp" value
 * @method AREA                    getAREA()                    Returns the current record's "AREA" value
 * @method RH_AP_HO_LAB            getRHAPHOLAB()               Returns the current record's "RH_AP_HO_LAB" value
 * @method RH_AP_NATURALEZA_EM     getRHAPNATURALEZAEM()        Returns the current record's "RH_AP_NATURALEZA_EM" value
 * @method RH_AP_PLANTA            getRHAPPLANTA()              Returns the current record's "RH_AP_PLANTA" value
 * @method RH_PN_COMPONENTE_ESCALA getRHPNCOMPONENTEESCALA()    Returns the current record's "RH_PN_COMPONENTE_ESCALA" value
 * @method Doctrine_Collection     getRHMFMF()                  Returns the current record's "RH_MF_MF" collection
 * @method Doctrine_Collection     getRHAPPRIMA()               Returns the current record's "RH_AP_PRIMA" collection
 * @method RH_AP_DEN_EMP           setIdDenEmp()                Sets the current record's "id_den_emp" value
 * @method RH_AP_DEN_EMP           setIdNatEm()                 Sets the current record's "id_nat_em" value
 * @method RH_AP_DEN_EMP           setIdArea()                  Sets the current record's "id_area" value
 * @method RH_AP_DEN_EMP           setIdHoraLa()                Sets the current record's "id_hora_la" value
 * @method RH_AP_DEN_EMP           setEmplNorma()               Sets the current record's "empl_norma" value
 * @method RH_AP_DEN_EMP           setTEmpl()                   Sets the current record's "t_empl" value
 * @method RH_AP_DEN_EMP           setIdCompEs()                Sets the current record's "id_comp_es" value
 * @method RH_AP_DEN_EMP           setVacaDef()                 Sets the current record's "vaca_def" value
 * @method RH_AP_DEN_EMP           setIdPlantaP()               Sets the current record's "id_planta_p" value
 * @method RH_AP_DEN_EMP           setVacaTemp()                Sets the current record's "vaca_temp" value
 * @method RH_AP_DEN_EMP           setAREA()                    Sets the current record's "AREA" value
 * @method RH_AP_DEN_EMP           setRHAPHOLAB()               Sets the current record's "RH_AP_HO_LAB" value
 * @method RH_AP_DEN_EMP           setRHAPNATURALEZAEM()        Sets the current record's "RH_AP_NATURALEZA_EM" value
 * @method RH_AP_DEN_EMP           setRHAPPLANTA()              Sets the current record's "RH_AP_PLANTA" value
 * @method RH_AP_DEN_EMP           setRHPNCOMPONENTEESCALA()    Sets the current record's "RH_PN_COMPONENTE_ESCALA" value
 * @method RH_AP_DEN_EMP           setRHMFMF()                  Sets the current record's "RH_MF_MF" collection
 * @method RH_AP_DEN_EMP           setRHAPPRIMA()               Sets the current record's "RH_AP_PRIMA" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_AP_DEN_EMP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_AP_DEN_EMP');
        $this->hasColumn('id_den_emp', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_nat_em', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_area', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_hora_la', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('empl_norma', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('t_empl', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_comp_es', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vaca_def', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_planta_p', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vaca_temp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('RH_AP_HO_LAB', array(
             'local' => 'id_hora_la',
             'foreign' => 'id_hor_lab'));

        $this->hasOne('RH_AP_NATURALEZA_EM', array(
             'local' => 'id_nat_em',
             'foreign' => 'id_nat_emp'));

        $this->hasOne('RH_AP_PLANTA', array(
             'local' => 'id_planta_p',
             'foreign' => 'id_planta'));

        $this->hasOne('RH_PN_COMPONENTE_ESCALA', array(
             'local' => 'id_comp_es',
             'foreign' => 'id_com_esc'));

        $this->hasMany('RH_MF_MF', array(
             'local' => 'id_den_emp',
             'foreign' => 'id_den_emp'));

        $this->hasMany('RH_AP_PRIMA', array(
             'local' => 'id_den_emp',
             'foreign' => 'id_denomi_em'));
    }
}