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

/**
 * BasePR_HISTORIAL_RP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_historial_rp
 * @property integer $id_rp
 * @property integer $id_cpo
 * @property integer $id_asign
 * @property integer $id_obj_gasto
 * @property decimal $valor
 * @property timestamp $fecha
 * @property string $usuario
 * @property integer $id_vigencia
 * @property string $vigencia
 * 
 * @method integer         getIdHistorialRp()   Returns the current record's "id_historial_rp" value
 * @method integer         getIdRp()            Returns the current record's "id_rp" value
 * @method integer         getIdCpo()           Returns the current record's "id_cpo" value
 * @method integer         getIdAsign()         Returns the current record's "id_asign" value
 * @method integer         getIdObjGasto()      Returns the current record's "id_obj_gasto" value
 * @method decimal         getValor()           Returns the current record's "valor" value
 * @method timestamp       getFecha()           Returns the current record's "fecha" value
 * @method string          getUsuario()         Returns the current record's "usuario" value
 * @method integer         getIdVigencia()      Returns the current record's "id_vigencia" value
 * @method string          getVigencia()        Returns the current record's "vigencia" value
 * @method PR_HISTORIAL_RP setIdHistorialRp()   Sets the current record's "id_historial_rp" value
 * @method PR_HISTORIAL_RP setIdRp()            Sets the current record's "id_rp" value
 * @method PR_HISTORIAL_RP setIdCpo()           Sets the current record's "id_cpo" value
 * @method PR_HISTORIAL_RP setIdAsign()         Sets the current record's "id_asign" value
 * @method PR_HISTORIAL_RP setIdObjGasto()      Sets the current record's "id_obj_gasto" value
 * @method PR_HISTORIAL_RP setValor()           Sets the current record's "valor" value
 * @method PR_HISTORIAL_RP setFecha()           Sets the current record's "fecha" value
 * @method PR_HISTORIAL_RP setUsuario()         Sets the current record's "usuario" value
 * @method PR_HISTORIAL_RP setIdVigencia()      Sets the current record's "id_vigencia" value
 * @method PR_HISTORIAL_RP setVigencia()        Sets the current record's "vigencia" value
 * 
 * @package    radicacionVirtualCuentas
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_HISTORIAL_RP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_HISTORIAL_RP');
        $this->hasColumn('id_historial_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('id_cpo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_asign', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_obj_gasto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $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('id_vigencia', '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,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}