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

/**
 * BaseRH_NP_CON_NOM
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_con_nom
 * @property string $codigo
 * @property string $descripcion
 * @property string $desc_corta
 * @property string $operador
 * @property integer $id_con_nom_aju
 * @property integer $id_con_nom_rei
 * @property integer $id_mae_ter
 * @property integer $id_rubro
 * @property integer $id_proyecto
 * @property integer $id_tip_con
 * @property integer $estado
 * @property integer $afect_presup
 * @property integer $id_obj_gasto
 * @property INTERCEROS $INTERCEROS
 * @property PROYECTOS $PROYECTOS
 * @property PR_CODIF_PRESUP $PR_CODIF_PRESUP
 * @property Doctrine_Collection $RH_NP_CON_NOM
 * @property Doctrine_Collection $RH_NP_CON_NOM_5
 * @property RH_NP_TIP_CON $RH_NP_TIP_CON
 * @property Doctrine_Collection $RH_SS_FON2
 * @property Doctrine_Collection $RH_NP_POL_CAL
 * @property Doctrine_Collection $RH_NP_NOV_CON
 * @property Doctrine_Collection $RH_NP_HOR_EXT
 * @property Doctrine_Collection $RH_NP_DED_LEY
 * @property Doctrine_Collection $RH_NP_CON_NOM_3
 * 
 * @method integer             getIdConNom()        Returns the current record's "id_con_nom" value
 * @method string              getCodigo()          Returns the current record's "codigo" value
 * @method string              getDescripcion()     Returns the current record's "descripcion" value
 * @method string              getDescCorta()       Returns the current record's "desc_corta" value
 * @method string              getOperador()        Returns the current record's "operador" value
 * @method integer             getIdConNomAju()     Returns the current record's "id_con_nom_aju" value
 * @method integer             getIdConNomRei()     Returns the current record's "id_con_nom_rei" value
 * @method integer             getIdMaeTer()        Returns the current record's "id_mae_ter" value
 * @method integer             getIdRubro()         Returns the current record's "id_rubro" value
 * @method integer             getIdProyecto()      Returns the current record's "id_proyecto" value
 * @method integer             getIdTipCon()        Returns the current record's "id_tip_con" value
 * @method integer             getEstado()          Returns the current record's "estado" value
 * @method integer             getAfectPresup()     Returns the current record's "afect_presup" value
 * @method integer             getIdObjGasto()      Returns the current record's "id_obj_gasto" value
 * @method INTERCEROS          getINTERCEROS()      Returns the current record's "INTERCEROS" value
 * @method PROYECTOS           getPROYECTOS()       Returns the current record's "PROYECTOS" value
 * @method PR_CODIF_PRESUP     getPRCODIFPRESUP()   Returns the current record's "PR_CODIF_PRESUP" value
 * @method Doctrine_Collection getRHNPCONNOM()      Returns the current record's "RH_NP_CON_NOM" collection
 * @method Doctrine_Collection getRHNPCONNOM5()     Returns the current record's "RH_NP_CON_NOM_5" collection
 * @method RH_NP_TIP_CON       getRHNPTIPCON()      Returns the current record's "RH_NP_TIP_CON" value
 * @method Doctrine_Collection getRHSSFON2()        Returns the current record's "RH_SS_FON2" collection
 * @method Doctrine_Collection getRHNPPOLCAL()      Returns the current record's "RH_NP_POL_CAL" collection
 * @method Doctrine_Collection getRHNPNOVCON()      Returns the current record's "RH_NP_NOV_CON" collection
 * @method Doctrine_Collection getRHNPHOREXT()      Returns the current record's "RH_NP_HOR_EXT" collection
 * @method Doctrine_Collection getRHNPDEDLEY()      Returns the current record's "RH_NP_DED_LEY" collection
 * @method Doctrine_Collection getRHNPCONNOM3()     Returns the current record's "RH_NP_CON_NOM_3" collection
 * @method RH_NP_CON_NOM       setIdConNom()        Sets the current record's "id_con_nom" value
 * @method RH_NP_CON_NOM       setCodigo()          Sets the current record's "codigo" value
 * @method RH_NP_CON_NOM       setDescripcion()     Sets the current record's "descripcion" value
 * @method RH_NP_CON_NOM       setDescCorta()       Sets the current record's "desc_corta" value
 * @method RH_NP_CON_NOM       setOperador()        Sets the current record's "operador" value
 * @method RH_NP_CON_NOM       setIdConNomAju()     Sets the current record's "id_con_nom_aju" value
 * @method RH_NP_CON_NOM       setIdConNomRei()     Sets the current record's "id_con_nom_rei" value
 * @method RH_NP_CON_NOM       setIdMaeTer()        Sets the current record's "id_mae_ter" value
 * @method RH_NP_CON_NOM       setIdRubro()         Sets the current record's "id_rubro" value
 * @method RH_NP_CON_NOM       setIdProyecto()      Sets the current record's "id_proyecto" value
 * @method RH_NP_CON_NOM       setIdTipCon()        Sets the current record's "id_tip_con" value
 * @method RH_NP_CON_NOM       setEstado()          Sets the current record's "estado" value
 * @method RH_NP_CON_NOM       setAfectPresup()     Sets the current record's "afect_presup" value
 * @method RH_NP_CON_NOM       setIdObjGasto()      Sets the current record's "id_obj_gasto" value
 * @method RH_NP_CON_NOM       setINTERCEROS()      Sets the current record's "INTERCEROS" value
 * @method RH_NP_CON_NOM       setPROYECTOS()       Sets the current record's "PROYECTOS" value
 * @method RH_NP_CON_NOM       setPRCODIFPRESUP()   Sets the current record's "PR_CODIF_PRESUP" value
 * @method RH_NP_CON_NOM       setRHNPCONNOM()      Sets the current record's "RH_NP_CON_NOM" collection
 * @method RH_NP_CON_NOM       setRHNPCONNOM5()     Sets the current record's "RH_NP_CON_NOM_5" collection
 * @method RH_NP_CON_NOM       setRHNPTIPCON()      Sets the current record's "RH_NP_TIP_CON" value
 * @method RH_NP_CON_NOM       setRHSSFON2()        Sets the current record's "RH_SS_FON2" collection
 * @method RH_NP_CON_NOM       setRHNPPOLCAL()      Sets the current record's "RH_NP_POL_CAL" collection
 * @method RH_NP_CON_NOM       setRHNPNOVCON()      Sets the current record's "RH_NP_NOV_CON" collection
 * @method RH_NP_CON_NOM       setRHNPHOREXT()      Sets the current record's "RH_NP_HOR_EXT" collection
 * @method RH_NP_CON_NOM       setRHNPDEDLEY()      Sets the current record's "RH_NP_DED_LEY" collection
 * @method RH_NP_CON_NOM       setRHNPCONNOM3()     Sets the current record's "RH_NP_CON_NOM_3" 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_NP_CON_NOM extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_NP_CON_NOM');
        $this->hasColumn('id_con_nom', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 4, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('descripcion', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('desc_corta', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('operador', 'string', 1, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_con_nom_aju', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_con_nom_rei', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_rubro', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_proyecto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tip_con', 'integer', 20, array(
             'notnull' => true,
             '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('afect_presup', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_obj_gasto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('PROYECTOS', array(
             'local' => 'id_proyecto',
             'foreign' => 'id'));

        $this->hasOne('PR_CODIF_PRESUP', array(
             'local' => 'id_rubro',
             'foreign' => 'id_rubro'));

        $this->hasMany('RH_NP_CON_NOM', array(
             'local' => 'id_con_nom',
             'foreign' => 'id_con_nom_rei'));

        $this->hasMany('RH_NP_CON_NOM as RH_NP_CON_NOM_5', array(
             'local' => 'id_con_nom',
             'foreign' => 'id_con_nom_rei'));

        $this->hasOne('RH_NP_TIP_CON', array(
             'local' => 'id_tip_con',
             'foreign' => 'id_tip_con'));

        $this->hasMany('RH_SS_FON2', array(
             'local' => 'id_con_nom',
             'foreign' => 'id_con_nom'));

        $this->hasMany('RH_NP_POL_CAL', array(
             'local' => 'id_con_nom',
             'foreign' => 'id_con_nom'));

        $this->hasMany('RH_NP_NOV_CON', array(
             'local' => 'id_con_nom',
             'foreign' => 'id_con_nom'));

        $this->hasMany('RH_NP_HOR_EXT', array(
             'local' => 'id_con_nom',
             'foreign' => 'id_con_nom'));

        $this->hasMany('RH_NP_DED_LEY', array(
             'local' => 'id_con_nom',
             'foreign' => 'id_con_nom'));

        $this->hasMany('RH_NP_CON_NOM as RH_NP_CON_NOM_3', array(
             'local' => 'id_con_nom',
             'foreign' => 'id_con_nom_aju'));
    }
}