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

/**
 * BaseRH_DP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_dp
 * @property integer $id_mf
 * @property integer $id_ea
 * @property string $nombre_inst
 * @property integer $codigo
 * @property string $titular
 * @property string $encargado
 * @property integer $id_den_emp
 * @property integer $id_sa_nom_tit
 * @property integer $id_sa_nom_enc
 * @property integer $id_cia
 * @property integer $id_cen_op
 * @property AREA $AREA
 * @property RH_MF_MF $RH_MF_MF
 * @property Doctrine_Collection $RH_SA_NOMBRAMIENTO
 * @property Doctrine_Collection $NO_NOMBRAMIENTO
 * @property Doctrine_Collection $NO_ESTADO_FUNC
 * @property Doctrine_Collection $NO_ANUL_NOMBRAMIENTO
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @property COMPANIA $COMPANIA
 * 
 * @method integer             getIdDp()                 Returns the current record's "id_dp" value
 * @method integer             getIdMf()                 Returns the current record's "id_mf" value
 * @method integer             getIdEa()                 Returns the current record's "id_ea" value
 * @method string              getNombreInst()           Returns the current record's "nombre_inst" value
 * @method integer             getCodigo()               Returns the current record's "codigo" value
 * @method string              getTitular()              Returns the current record's "titular" value
 * @method string              getEncargado()            Returns the current record's "encargado" value
 * @method integer             getIdDenEmp()             Returns the current record's "id_den_emp" value
 * @method integer             getIdSaNomTit()           Returns the current record's "id_sa_nom_tit" value
 * @method integer             getIdSaNomEnc()           Returns the current record's "id_sa_nom_enc" value
 * @method integer             getIdCia()                Returns the current record's "id_cia" value
 * @method integer             getIdCenOp()              Returns the current record's "id_cen_op" value
 * @method AREA                getAREA()                 Returns the current record's "AREA" value
 * @method RH_MF_MF            getRHMFMF()               Returns the current record's "RH_MF_MF" value
 * @method Doctrine_Collection getRHSANOMBRAMIENTO()     Returns the current record's "RH_SA_NOMBRAMIENTO" collection
 * @method Doctrine_Collection getNONOMBRAMIENTO()       Returns the current record's "NO_NOMBRAMIENTO" collection
 * @method Doctrine_Collection getNOESTADOFUNC()         Returns the current record's "NO_ESTADO_FUNC" collection
 * @method Doctrine_Collection getNOANULNOMBRAMIENTO()   Returns the current record's "NO_ANUL_NOMBRAMIENTO" collection
 * @method CENTRO_OPERACION    getCENTROOPERACION()      Returns the current record's "CENTRO_OPERACION" value
 * @method COMPANIA            getCOMPANIA()             Returns the current record's "COMPANIA" value
 * @method RH_DP               setIdDp()                 Sets the current record's "id_dp" value
 * @method RH_DP               setIdMf()                 Sets the current record's "id_mf" value
 * @method RH_DP               setIdEa()                 Sets the current record's "id_ea" value
 * @method RH_DP               setNombreInst()           Sets the current record's "nombre_inst" value
 * @method RH_DP               setCodigo()               Sets the current record's "codigo" value
 * @method RH_DP               setTitular()              Sets the current record's "titular" value
 * @method RH_DP               setEncargado()            Sets the current record's "encargado" value
 * @method RH_DP               setIdDenEmp()             Sets the current record's "id_den_emp" value
 * @method RH_DP               setIdSaNomTit()           Sets the current record's "id_sa_nom_tit" value
 * @method RH_DP               setIdSaNomEnc()           Sets the current record's "id_sa_nom_enc" value
 * @method RH_DP               setIdCia()                Sets the current record's "id_cia" value
 * @method RH_DP               setIdCenOp()              Sets the current record's "id_cen_op" value
 * @method RH_DP               setAREA()                 Sets the current record's "AREA" value
 * @method RH_DP               setRHMFMF()               Sets the current record's "RH_MF_MF" value
 * @method RH_DP               setRHSANOMBRAMIENTO()     Sets the current record's "RH_SA_NOMBRAMIENTO" collection
 * @method RH_DP               setNONOMBRAMIENTO()       Sets the current record's "NO_NOMBRAMIENTO" collection
 * @method RH_DP               setNOESTADOFUNC()         Sets the current record's "NO_ESTADO_FUNC" collection
 * @method RH_DP               setNOANULNOMBRAMIENTO()   Sets the current record's "NO_ANUL_NOMBRAMIENTO" collection
 * @method RH_DP               setCENTROOPERACION()      Sets the current record's "CENTRO_OPERACION" value
 * @method RH_DP               setCOMPANIA()             Sets the current record's "COMPANIA" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_DP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_DP');
        $this->hasColumn('id_dp', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_mf', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_ea', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nombre_inst', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('codigo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('titular', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('encargado', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_den_emp', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_sa_nom_tit', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_sa_nom_enc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cen_op', '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_ea',
             'foreign' => 'id_area'));

        $this->hasOne('RH_MF_MF', array(
             'local' => 'id_mf',
             'foreign' => 'id_mf_mf'));

        $this->hasMany('RH_SA_NOMBRAMIENTO', array(
             'local' => 'id_dp',
             'foreign' => 'id_dp'));

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

        $this->hasMany('NO_ESTADO_FUNC', array(
             'local' => 'id_dp',
             'foreign' => 'id_dp'));

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

        $this->hasOne('CENTRO_OPERACION', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasOne('COMPANIA', array(
             'local' => 'id_cia',
             'foreign' => 'id_cia'));
    }
}