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

/**
 * BaseCONS_RP_COMPROMISO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_rp
 * @property integer $id_cpo
 * @property integer $id_asign
 * @property integer $id_obj_gasto
 * @property decimal $valor
 * @property integer $id_vigencia
 * @property string $vigencia
 * 
 * @method integer            getId()           Returns the current record's "id" 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 integer            getIdVigencia()   Returns the current record's "id_vigencia" value
 * @method string             getVigencia()     Returns the current record's "vigencia" value
 * @method CONS_RP_COMPROMISO setId()           Sets the current record's "id" value
 * @method CONS_RP_COMPROMISO setIdRp()         Sets the current record's "id_rp" value
 * @method CONS_RP_COMPROMISO setIdCpo()        Sets the current record's "id_cpo" value
 * @method CONS_RP_COMPROMISO setIdAsign()      Sets the current record's "id_asign" value
 * @method CONS_RP_COMPROMISO setIdObjGasto()   Sets the current record's "id_obj_gasto" value
 * @method CONS_RP_COMPROMISO setValor()        Sets the current record's "valor" value
 * @method CONS_RP_COMPROMISO setIdVigencia()   Sets the current record's "id_vigencia" value
 * @method CONS_RP_COMPROMISO setVigencia()     Sets the current record's "vigencia" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCONS_RP_COMPROMISO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CONS_RP_COMPROMISO');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_rp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cpo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_asign', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_obj_gasto', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
    }

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