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

/**
 * BaseRH_NP_NOV_CON
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nov_con
 * @property integer $id_tip_nov
 * @property integer $id_con_nom
 * @property integer $orden
 * @property RH_NP_CON_NOM $RH_NP_CON_NOM
 * @property RH_NP_TIP_NOV $RH_NP_TIP_NOV
 * 
 * @method integer       getIdNovCon()      Returns the current record's "id_nov_con" value
 * @method integer       getIdTipNov()      Returns the current record's "id_tip_nov" value
 * @method integer       getIdConNom()      Returns the current record's "id_con_nom" value
 * @method integer       getOrden()         Returns the current record's "orden" value
 * @method RH_NP_CON_NOM getRHNPCONNOM()    Returns the current record's "RH_NP_CON_NOM" value
 * @method RH_NP_TIP_NOV getRHNPTIPNOV()    Returns the current record's "RH_NP_TIP_NOV" value
 * @method RH_NP_NOV_CON setIdNovCon()      Sets the current record's "id_nov_con" value
 * @method RH_NP_NOV_CON setIdTipNov()      Sets the current record's "id_tip_nov" value
 * @method RH_NP_NOV_CON setIdConNom()      Sets the current record's "id_con_nom" value
 * @method RH_NP_NOV_CON setOrden()         Sets the current record's "orden" value
 * @method RH_NP_NOV_CON setRHNPCONNOM()    Sets the current record's "RH_NP_CON_NOM" value
 * @method RH_NP_NOV_CON setRHNPTIPNOV()    Sets the current record's "RH_NP_TIP_NOV" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_NP_NOV_CON extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_NP_NOV_CON');
        $this->hasColumn('id_nov_con', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tip_nov', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_con_nom', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('orden', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('RH_NP_TIP_NOV', array(
             'local' => 'id_tip_nov',
             'foreign' => 'id_tip_nov'));
    }
}