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

/**
 * BasePR_NOVEDAD_RP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad_rp
 * @property integer $id_rp
 * @property decimal $valor_novedad
 * @property integer $id_tipo_novedad
 * @property string $vigencia
 * @property timestamp $fecha
 * @property string $usuario
 * @property string $soporte
 * @property timestamp $fecha_sys
 * @property integer $id_vigencia
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer       getIdNovedadRp()     Returns the current record's "id_novedad_rp" value
 * @method integer       getIdRp()            Returns the current record's "id_rp" value
 * @method decimal       getValorNovedad()    Returns the current record's "valor_novedad" value
 * @method integer       getIdTipoNovedad()   Returns the current record's "id_tipo_novedad" value
 * @method string        getVigencia()        Returns the current record's "vigencia" value
 * @method timestamp     getFecha()           Returns the current record's "fecha" value
 * @method string        getUsuario()         Returns the current record's "usuario" value
 * @method string        getSoporte()         Returns the current record's "soporte" value
 * @method timestamp     getFechaSys()        Returns the current record's "fecha_sys" value
 * @method integer       getIdVigencia()      Returns the current record's "id_vigencia" value
 * @method VIGENCIA      getVIGENCIA()        Returns the current record's "VIGENCIA" value
 * @method PR_NOVEDAD_RP setIdNovedadRp()     Sets the current record's "id_novedad_rp" value
 * @method PR_NOVEDAD_RP setIdRp()            Sets the current record's "id_rp" value
 * @method PR_NOVEDAD_RP setValorNovedad()    Sets the current record's "valor_novedad" value
 * @method PR_NOVEDAD_RP setIdTipoNovedad()   Sets the current record's "id_tipo_novedad" value
 * @method PR_NOVEDAD_RP setVigencia()        Sets the current record's "vigencia" value
 * @method PR_NOVEDAD_RP setFecha()           Sets the current record's "fecha" value
 * @method PR_NOVEDAD_RP setUsuario()         Sets the current record's "usuario" value
 * @method PR_NOVEDAD_RP setSoporte()         Sets the current record's "soporte" value
 * @method PR_NOVEDAD_RP setFechaSys()        Sets the current record's "fecha_sys" value
 * @method PR_NOVEDAD_RP setIdVigencia()      Sets the current record's "id_vigencia" value
 * @method PR_NOVEDAD_RP setVIGENCIA()        Sets the current record's "VIGENCIA" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_NOVEDAD_RP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_NOVEDAD_RP');
        $this->hasColumn('id_novedad_rp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_rp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_novedad', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('id_tipo_novedad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('soporte', 'string', 60, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 60,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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