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

/**
 * BasePR_NOVEDAD_APROPIACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $cod_novedad
 * @property integer $id_apropiacion
 * @property string $soporte
 * @property integer $tipo_novedad
 * @property timestamp $fecha
 * @property integer $credito
 * @property integer $ccredito
 * @property integer $adicion
 * @property integer $reduccion
 * @property integer $aplazamiento
 * @property integer $desaplazamiento
 * @property integer $valor_inicial
 * @property integer $valor_total
 * @property string $vigencia
 * @property string $usuario
 * @property timestamp $fecha_proceso
 * @property integer $id_vigencia
 * @property PR_APROPIACION $PR_APROPIACION
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer                getId()              Returns the current record's "id" value
 * @method integer                getCodNovedad()      Returns the current record's "cod_novedad" value
 * @method integer                getIdApropiacion()   Returns the current record's "id_apropiacion" value
 * @method string                 getSoporte()         Returns the current record's "soporte" value
 * @method integer                getTipoNovedad()     Returns the current record's "tipo_novedad" value
 * @method timestamp              getFecha()           Returns the current record's "fecha" value
 * @method integer                getCredito()         Returns the current record's "credito" value
 * @method integer                getCcredito()        Returns the current record's "ccredito" value
 * @method integer                getAdicion()         Returns the current record's "adicion" value
 * @method integer                getReduccion()       Returns the current record's "reduccion" value
 * @method integer                getAplazamiento()    Returns the current record's "aplazamiento" value
 * @method integer                getDesaplazamiento() Returns the current record's "desaplazamiento" value
 * @method integer                getValorInicial()    Returns the current record's "valor_inicial" value
 * @method integer                getValorTotal()      Returns the current record's "valor_total" value
 * @method string                 getVigencia()        Returns the current record's "vigencia" value
 * @method string                 getUsuario()         Returns the current record's "usuario" value
 * @method timestamp              getFechaProceso()    Returns the current record's "fecha_proceso" value
 * @method integer                getIdVigencia()      Returns the current record's "id_vigencia" value
 * @method PR_APROPIACION         getPRAPROPIACION()   Returns the current record's "PR_APROPIACION" value
 * @method VIGENCIA               getVIGENCIA()        Returns the current record's "VIGENCIA" value
 * @method PR_NOVEDAD_APROPIACION setId()              Sets the current record's "id" value
 * @method PR_NOVEDAD_APROPIACION setCodNovedad()      Sets the current record's "cod_novedad" value
 * @method PR_NOVEDAD_APROPIACION setIdApropiacion()   Sets the current record's "id_apropiacion" value
 * @method PR_NOVEDAD_APROPIACION setSoporte()         Sets the current record's "soporte" value
 * @method PR_NOVEDAD_APROPIACION setTipoNovedad()     Sets the current record's "tipo_novedad" value
 * @method PR_NOVEDAD_APROPIACION setFecha()           Sets the current record's "fecha" value
 * @method PR_NOVEDAD_APROPIACION setCredito()         Sets the current record's "credito" value
 * @method PR_NOVEDAD_APROPIACION setCcredito()        Sets the current record's "ccredito" value
 * @method PR_NOVEDAD_APROPIACION setAdicion()         Sets the current record's "adicion" value
 * @method PR_NOVEDAD_APROPIACION setReduccion()       Sets the current record's "reduccion" value
 * @method PR_NOVEDAD_APROPIACION setAplazamiento()    Sets the current record's "aplazamiento" value
 * @method PR_NOVEDAD_APROPIACION setDesaplazamiento() Sets the current record's "desaplazamiento" value
 * @method PR_NOVEDAD_APROPIACION setValorInicial()    Sets the current record's "valor_inicial" value
 * @method PR_NOVEDAD_APROPIACION setValorTotal()      Sets the current record's "valor_total" value
 * @method PR_NOVEDAD_APROPIACION setVigencia()        Sets the current record's "vigencia" value
 * @method PR_NOVEDAD_APROPIACION setUsuario()         Sets the current record's "usuario" value
 * @method PR_NOVEDAD_APROPIACION setFechaProceso()    Sets the current record's "fecha_proceso" value
 * @method PR_NOVEDAD_APROPIACION setIdVigencia()      Sets the current record's "id_vigencia" value
 * @method PR_NOVEDAD_APROPIACION setPRAPROPIACION()   Sets the current record's "PR_APROPIACION" value
 * @method PR_NOVEDAD_APROPIACION 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_APROPIACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_NOVEDAD_APROPIACION');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('cod_novedad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_apropiacion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('soporte', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tipo_novedad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('credito', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('ccredito', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('adicion', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('reduccion', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('aplazamiento', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('desaplazamiento', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_inicial', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('valor_total', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_proceso', '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('PR_APROPIACION', array(
             'local' => 'id_apropiacion',
             'foreign' => 'id'));

        $this->hasOne('VIGENCIA', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));
    }
}