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

/**
 * BasePR_APROP_NOVEDAD
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_apropiacion
 * @property integer $valor_inicial
 * @property integer $credito
 * @property integer $c_credito
 * @property integer $adicion
 * @property integer $reduccion
 * @property integer $aplazamiento
 * @property integer $desaplazamiento
 * @property integer $valor_total
 * @property string $vigencia
 * @property integer $id
 * @property integer $id_vigencia
 * @property VIGENCIA $VIGENCIA
 * @property PR_APROPIACION $PR_APROPIACION
 * 
 * @method integer          getIdApropiacion()   Returns the current record's "id_apropiacion" value
 * @method integer          getValorInicial()    Returns the current record's "valor_inicial" value
 * @method integer          getCredito()         Returns the current record's "credito" value
 * @method integer          getCCredito()        Returns the current record's "c_credito" 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          getValorTotal()      Returns the current record's "valor_total" value
 * @method string           getVigencia()        Returns the current record's "vigencia" value
 * @method integer          getId()              Returns the current record's "id" value
 * @method integer          getIdVigencia()      Returns the current record's "id_vigencia" value
 * @method VIGENCIA         getVIGENCIA()        Returns the current record's "VIGENCIA" value
 * @method PR_APROPIACION   getPRAPROPIACION()   Returns the current record's "PR_APROPIACION" value
 * @method PR_APROP_NOVEDAD setIdApropiacion()   Sets the current record's "id_apropiacion" value
 * @method PR_APROP_NOVEDAD setValorInicial()    Sets the current record's "valor_inicial" value
 * @method PR_APROP_NOVEDAD setCredito()         Sets the current record's "credito" value
 * @method PR_APROP_NOVEDAD setCCredito()        Sets the current record's "c_credito" value
 * @method PR_APROP_NOVEDAD setAdicion()         Sets the current record's "adicion" value
 * @method PR_APROP_NOVEDAD setReduccion()       Sets the current record's "reduccion" value
 * @method PR_APROP_NOVEDAD setAplazamiento()    Sets the current record's "aplazamiento" value
 * @method PR_APROP_NOVEDAD setDesaplazamiento() Sets the current record's "desaplazamiento" value
 * @method PR_APROP_NOVEDAD setValorTotal()      Sets the current record's "valor_total" value
 * @method PR_APROP_NOVEDAD setVigencia()        Sets the current record's "vigencia" value
 * @method PR_APROP_NOVEDAD setId()              Sets the current record's "id" value
 * @method PR_APROP_NOVEDAD setIdVigencia()      Sets the current record's "id_vigencia" value
 * @method PR_APROP_NOVEDAD setVIGENCIA()        Sets the current record's "VIGENCIA" value
 * @method PR_APROP_NOVEDAD setPRAPROPIACION()   Sets the current record's "PR_APROPIACION" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_APROP_NOVEDAD extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_APROP_NOVEDAD');
        $this->hasColumn('id_apropiacion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_inicial', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('credito', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('c_credito', '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', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('valor_total', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $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'));

        $this->hasOne('PR_APROPIACION', array(
             'local' => 'id_apropiacion',
             'foreign' => 'id'));
    }
}