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

/**
 * BasePR_NOVEDAD_CDP_VAL
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad_cdp_val
 * @property integer $id_novedad_cdp
 * @property integer $id_asign
 * @property integer $id_obj_gasto
 * @property decimal $valor_inicial
 * @property decimal $debito
 * @property decimal $credito
 * @property decimal $valor_final
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer            getIdNovedadCdpVal()    Returns the current record's "id_novedad_cdp_val" value
 * @method integer            getIdNovedadCdp()       Returns the current record's "id_novedad_cdp" 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            getValorInicial()       Returns the current record's "valor_inicial" value
 * @method decimal            getDebito()             Returns the current record's "debito" value
 * @method decimal            getCredito()            Returns the current record's "credito" value
 * @method decimal            getValorFinal()         Returns the current record's "valor_final" value
 * @method integer            getIdVigencia()         Returns the current record's "id_vigencia" value
 * @method string             getVigencia()           Returns the current record's "vigencia" value
 * @method VIGENCIA           getVIGENCIA()           Returns the current record's "VIGENCIA" value
 * @method PR_NOVEDAD_CDP_VAL setIdNovedadCdpVal()    Sets the current record's "id_novedad_cdp_val" value
 * @method PR_NOVEDAD_CDP_VAL setIdNovedadCdp()       Sets the current record's "id_novedad_cdp" value
 * @method PR_NOVEDAD_CDP_VAL setIdAsign()            Sets the current record's "id_asign" value
 * @method PR_NOVEDAD_CDP_VAL setIdObjGasto()         Sets the current record's "id_obj_gasto" value
 * @method PR_NOVEDAD_CDP_VAL setValorInicial()       Sets the current record's "valor_inicial" value
 * @method PR_NOVEDAD_CDP_VAL setDebito()             Sets the current record's "debito" value
 * @method PR_NOVEDAD_CDP_VAL setCredito()            Sets the current record's "credito" value
 * @method PR_NOVEDAD_CDP_VAL setValorFinal()         Sets the current record's "valor_final" value
 * @method PR_NOVEDAD_CDP_VAL setIdVigencia()         Sets the current record's "id_vigencia" value
 * @method PR_NOVEDAD_CDP_VAL setVigencia()           Sets the current record's "vigencia" value
 * @method PR_NOVEDAD_CDP_VAL setVIGENCIA()           Sets the current record's "VIGENCIA" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_NOVEDAD_CDP_VAL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_NOVEDAD_CDP_VAL');
        $this->hasColumn('id_novedad_cdp_val', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_novedad_cdp', '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_inicial', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('debito', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('credito', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('valor_final', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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