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

/**
 * BaseNO_RH_DP_MF
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_rh_dp_mf
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property integer $id_dp
 * @property integer $id_ea
 * @property integer $id_sa_niv2
 * @property timestamp $fecha_ini
 * @property timestamp $fecha_fin
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_2
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_3
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_4
 * @property RH_DP $RH_DP
 * @property AREA $AREA
 * @property RH_SA_NIV2 $RH_SA_NIV2
 * 
 * @method integer           getIdRhDpMf()            Returns the current record's "id_rh_dp_mf" 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 integer           getIdDp()                Returns the current record's "id_dp" value
 * @method integer           getIdEa()                Returns the current record's "id_ea" value
 * @method integer           getIdSaNiv2()            Returns the current record's "id_sa_niv2" value
 * @method timestamp         getFechaIni()            Returns the current record's "fecha_ini" value
 * @method timestamp         getFechaFin()            Returns the current record's "fecha_fin" 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 RH_DP             getRHDP()                Returns the current record's "RH_DP" value
 * @method AREA              getAREA()                Returns the current record's "AREA" value
 * @method RH_SA_NIV2        getRHSANIV2()            Returns the current record's "RH_SA_NIV2" value
 * @method NO_RH_DP_MF       setIdRhDpMf()            Sets the current record's "id_rh_dp_mf" value
 * @method NO_RH_DP_MF       setIdTipoDoc()           Sets the current record's "id_tipo_doc" value
 * @method NO_RH_DP_MF       setNumDoc()              Sets the current record's "num_doc" value
 * @method NO_RH_DP_MF       setIdDp()                Sets the current record's "id_dp" value
 * @method NO_RH_DP_MF       setIdEa()                Sets the current record's "id_ea" value
 * @method NO_RH_DP_MF       setIdSaNiv2()            Sets the current record's "id_sa_niv2" value
 * @method NO_RH_DP_MF       setFechaIni()            Sets the current record's "fecha_ini" value
 * @method NO_RH_DP_MF       setFechaFin()            Sets the current record's "fecha_fin" value
 * @method NO_RH_DP_MF       setDATOSFUNCIONARIO()    Sets the current record's "DATOS_FUNCIONARIO" value
 * @method NO_RH_DP_MF       setDATOSFUNCIONARIO2()   Sets the current record's "DATOS_FUNCIONARIO_2" value
 * @method NO_RH_DP_MF       setDATOSFUNCIONARIO3()   Sets the current record's "DATOS_FUNCIONARIO_3" value
 * @method NO_RH_DP_MF       setDATOSFUNCIONARIO4()   Sets the current record's "DATOS_FUNCIONARIO_4" value
 * @method NO_RH_DP_MF       setRHDP()                Sets the current record's "RH_DP" value
 * @method NO_RH_DP_MF       setAREA()                Sets the current record's "AREA" value
 * @method NO_RH_DP_MF       setRHSANIV2()            Sets the current record's "RH_SA_NIV2" 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_RH_DP_MF extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_RH_DP_MF');
        $this->hasColumn('id_rh_dp_mf', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             '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('id_dp', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ea', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_sa_niv2', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $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,
             ));
    }

    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('RH_DP', array(
             'local' => 'id_dp',
             'foreign' => 'id_dp'));

        $this->hasOne('AREA', array(
             'local' => 'id_ea',
             'foreign' => 'id_area'));

        $this->hasOne('RH_SA_NIV2', array(
             'local' => 'id_sa_niv2',
             'foreign' => 'id_sa_niv2'));
    }
}