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

/**
 * BaseRH_NP_HOR_EXT
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_hor_ext
 * @property string $descripcion
 * @property integer $id_con_nom
 * @property decimal $factor
 * @property integer $pago_fes
 * @property string $codigo
 * @property RH_NP_CON_NOM $RH_NP_CON_NOM
 * 
 * @method integer       getIdHorExt()      Returns the current record's "id_hor_ext" value
 * @method string        getDescripcion()   Returns the current record's "descripcion" value
 * @method integer       getIdConNom()      Returns the current record's "id_con_nom" value
 * @method decimal       getFactor()        Returns the current record's "factor" value
 * @method integer       getPagoFes()       Returns the current record's "pago_fes" value
 * @method string        getCodigo()        Returns the current record's "codigo" value
 * @method RH_NP_CON_NOM getRHNPCONNOM()    Returns the current record's "RH_NP_CON_NOM" value
 * @method RH_NP_HOR_EXT setIdHorExt()      Sets the current record's "id_hor_ext" value
 * @method RH_NP_HOR_EXT setDescripcion()   Sets the current record's "descripcion" value
 * @method RH_NP_HOR_EXT setIdConNom()      Sets the current record's "id_con_nom" value
 * @method RH_NP_HOR_EXT setFactor()        Sets the current record's "factor" value
 * @method RH_NP_HOR_EXT setPagoFes()       Sets the current record's "pago_fes" value
 * @method RH_NP_HOR_EXT setCodigo()        Sets the current record's "codigo" value
 * @method RH_NP_HOR_EXT setRHNPCONNOM()    Sets the current record's "RH_NP_CON_NOM" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_NP_HOR_EXT extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_NP_HOR_EXT');
        $this->hasColumn('id_hor_ext', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('id_con_nom', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('factor', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('pago_fes', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             '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'));
    }
}