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

/**
 * BaseRH_SA_NOMBRAMIENTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_sa_nom
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property integer $id_dp
 * @property timestamp $fecha_i
 * @property timestamp $fecha_f
 * @property integer $id_area
 * @property integer $id_norma1
 * @property integer $id_norma2
 * @property integer $p_resolucion
 * @property integer $p_convocatoria
 * @property integer $p_cargo
 * @property string $pro_path
 * @property string $p_path
 * @property integer $id_sa_niv2
 * @property integer $id_norma3
 * @property timestamp $fecha_p
 * @property integer $estado
 * @property integer $id_cia
 * @property integer $id_cen_op
 * @property AREA $AREA
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_3
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_4
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_5
 * @property NORMAS $NORMAS
 * @property NORMAS $NORMAS_7
 * @property RH_DP $RH_DP
 * @property RH_SA_NIV2 $RH_SA_NIV2
 * 
 * @method integer            getIdSaNom()             Returns the current record's "id_sa_nom" 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 timestamp          getFechaI()              Returns the current record's "fecha_i" value
 * @method timestamp          getFechaF()              Returns the current record's "fecha_f" value
 * @method integer            getIdArea()              Returns the current record's "id_area" value
 * @method integer            getIdNorma1()            Returns the current record's "id_norma1" value
 * @method integer            getIdNorma2()            Returns the current record's "id_norma2" value
 * @method integer            getPResolucion()         Returns the current record's "p_resolucion" value
 * @method integer            getPConvocatoria()       Returns the current record's "p_convocatoria" value
 * @method integer            getPCargo()              Returns the current record's "p_cargo" value
 * @method string             getProPath()             Returns the current record's "pro_path" value
 * @method string             getPPath()               Returns the current record's "p_path" value
 * @method integer            getIdSaNiv2()            Returns the current record's "id_sa_niv2" value
 * @method integer            getIdNorma3()            Returns the current record's "id_norma3" value
 * @method timestamp          getFechaP()              Returns the current record's "fecha_p" value
 * @method integer            getEstado()              Returns the current record's "estado" 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 DATOS_FUNCIONARIO  getDATOSFUNCIONARIO()    Returns the current record's "DATOS_FUNCIONARIO" 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 DATOS_FUNCIONARIO  getDATOSFUNCIONARIO5()   Returns the current record's "DATOS_FUNCIONARIO_5" value
 * @method NORMAS             getNORMAS()              Returns the current record's "NORMAS" value
 * @method NORMAS             getNORMAS7()             Returns the current record's "NORMAS_7" value
 * @method RH_DP              getRHDP()                Returns the current record's "RH_DP" value
 * @method RH_SA_NIV2         getRHSANIV2()            Returns the current record's "RH_SA_NIV2" value
 * @method RH_SA_NOMBRAMIENTO setIdSaNom()             Sets the current record's "id_sa_nom" value
 * @method RH_SA_NOMBRAMIENTO setIdTipoDoc()           Sets the current record's "id_tipo_doc" value
 * @method RH_SA_NOMBRAMIENTO setNumDoc()              Sets the current record's "num_doc" value
 * @method RH_SA_NOMBRAMIENTO setIdDp()                Sets the current record's "id_dp" value
 * @method RH_SA_NOMBRAMIENTO setFechaI()              Sets the current record's "fecha_i" value
 * @method RH_SA_NOMBRAMIENTO setFechaF()              Sets the current record's "fecha_f" value
 * @method RH_SA_NOMBRAMIENTO setIdArea()              Sets the current record's "id_area" value
 * @method RH_SA_NOMBRAMIENTO setIdNorma1()            Sets the current record's "id_norma1" value
 * @method RH_SA_NOMBRAMIENTO setIdNorma2()            Sets the current record's "id_norma2" value
 * @method RH_SA_NOMBRAMIENTO setPResolucion()         Sets the current record's "p_resolucion" value
 * @method RH_SA_NOMBRAMIENTO setPConvocatoria()       Sets the current record's "p_convocatoria" value
 * @method RH_SA_NOMBRAMIENTO setPCargo()              Sets the current record's "p_cargo" value
 * @method RH_SA_NOMBRAMIENTO setProPath()             Sets the current record's "pro_path" value
 * @method RH_SA_NOMBRAMIENTO setPPath()               Sets the current record's "p_path" value
 * @method RH_SA_NOMBRAMIENTO setIdSaNiv2()            Sets the current record's "id_sa_niv2" value
 * @method RH_SA_NOMBRAMIENTO setIdNorma3()            Sets the current record's "id_norma3" value
 * @method RH_SA_NOMBRAMIENTO setFechaP()              Sets the current record's "fecha_p" value
 * @method RH_SA_NOMBRAMIENTO setEstado()              Sets the current record's "estado" value
 * @method RH_SA_NOMBRAMIENTO setIdCia()               Sets the current record's "id_cia" value
 * @method RH_SA_NOMBRAMIENTO setIdCenOp()             Sets the current record's "id_cen_op" value
 * @method RH_SA_NOMBRAMIENTO setAREA()                Sets the current record's "AREA" value
 * @method RH_SA_NOMBRAMIENTO setDATOSFUNCIONARIO()    Sets the current record's "DATOS_FUNCIONARIO" value
 * @method RH_SA_NOMBRAMIENTO setDATOSFUNCIONARIO3()   Sets the current record's "DATOS_FUNCIONARIO_3" value
 * @method RH_SA_NOMBRAMIENTO setDATOSFUNCIONARIO4()   Sets the current record's "DATOS_FUNCIONARIO_4" value
 * @method RH_SA_NOMBRAMIENTO setDATOSFUNCIONARIO5()   Sets the current record's "DATOS_FUNCIONARIO_5" value
 * @method RH_SA_NOMBRAMIENTO setNORMAS()              Sets the current record's "NORMAS" value
 * @method RH_SA_NOMBRAMIENTO setNORMAS7()             Sets the current record's "NORMAS_7" value
 * @method RH_SA_NOMBRAMIENTO setRHDP()                Sets the current record's "RH_DP" value
 * @method RH_SA_NOMBRAMIENTO setRHSANIV2()            Sets the current record's "RH_SA_NIV2" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_SA_NOMBRAMIENTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_SA_NOMBRAMIENTO');
        $this->hasColumn('id_sa_nom', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_dp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_i', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_f', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_area', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_norma1', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_norma2', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('p_resolucion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('p_convocatoria', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('p_cargo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('pro_path', 'string', 300, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
        $this->hasColumn('p_path', 'string', 300, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
        $this->hasColumn('id_sa_niv2', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_norma3', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_p', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $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_area',
             'foreign' => 'id_area'));

        $this->hasOne('DATOS_FUNCIONARIO', array(
             'local' => 'id_tipo_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' => 'id_tipo_doc'));

        $this->hasOne('DATOS_FUNCIONARIO as DATOS_FUNCIONARIO_5', array(
             'local' => 'num_doc',
             'foreign' => 'num_doc'));

        $this->hasOne('NORMAS', array(
             'local' => 'id_norma1',
             'foreign' => 'id_normas'));

        $this->hasOne('NORMAS as NORMAS_7', array(
             'local' => 'id_norma2',
             'foreign' => 'id_normas'));

        $this->hasOne('RH_DP', array(
             'local' => 'id_dp',
             'foreign' => 'id_dp'));

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