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

/**
 * BasePR_ASIGNACION_SALDOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_asign_saldos
 * @property integer $id_asign
 * @property decimal $valor_inicial
 * @property decimal $valor_final
 * @property string $usuario
 * @property timestamp $fecha_sistema
 * @property string $ano_fiscal
 * @property integer $id_vigencia
 * @property PR_ASIG_PRESUP $PR_ASIG_PRESUP
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer              getIdAsignSaldos()   Returns the current record's "id_asign_saldos" value
 * @method integer              getIdAsign()         Returns the current record's "id_asign" value
 * @method decimal              getValorInicial()    Returns the current record's "valor_inicial" value
 * @method decimal              getValorFinal()      Returns the current record's "valor_final" value
 * @method string               getUsuario()         Returns the current record's "usuario" value
 * @method timestamp            getFechaSistema()    Returns the current record's "fecha_sistema" value
 * @method string               getAnoFiscal()       Returns the current record's "ano_fiscal" value
 * @method integer              getIdVigencia()      Returns the current record's "id_vigencia" value
 * @method PR_ASIG_PRESUP       getPRASIGPRESUP()    Returns the current record's "PR_ASIG_PRESUP" value
 * @method VIGENCIA             getVIGENCIA()        Returns the current record's "VIGENCIA" value
 * @method PR_ASIGNACION_SALDOS setIdAsignSaldos()   Sets the current record's "id_asign_saldos" value
 * @method PR_ASIGNACION_SALDOS setIdAsign()         Sets the current record's "id_asign" value
 * @method PR_ASIGNACION_SALDOS setValorInicial()    Sets the current record's "valor_inicial" value
 * @method PR_ASIGNACION_SALDOS setValorFinal()      Sets the current record's "valor_final" value
 * @method PR_ASIGNACION_SALDOS setUsuario()         Sets the current record's "usuario" value
 * @method PR_ASIGNACION_SALDOS setFechaSistema()    Sets the current record's "fecha_sistema" value
 * @method PR_ASIGNACION_SALDOS setAnoFiscal()       Sets the current record's "ano_fiscal" value
 * @method PR_ASIGNACION_SALDOS setIdVigencia()      Sets the current record's "id_vigencia" value
 * @method PR_ASIGNACION_SALDOS setPRASIGPRESUP()    Sets the current record's "PR_ASIG_PRESUP" value
 * @method PR_ASIGNACION_SALDOS setVIGENCIA()        Sets the current record's "VIGENCIA" 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_ASIGNACION_SALDOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_ASIGNACION_SALDOS');
        $this->hasColumn('id_asign_saldos', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_asign', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_inicial', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('valor_final', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_sistema', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('ano_fiscal', 'string', 4, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $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_ASIG_PRESUP', array(
             'local' => 'id_asign',
             'foreign' => 'id'));

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