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

/**
 * BasePR_PO_SALDOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_po_saldos
 * @property integer $id_obj_gasto
 * @property integer $id_apropiacion
 * @property string $ano_fiscal
 * @property integer $id_cpo
 * @property timestamp $fecha_proceso
 * @property decimal $saldo
 * @property integer $id_vigencia
 * @property OBJETOS_GASTO $OBJETOS_GASTO
 * @property PROYECTOS $PROYECTOS
 * @property PR_APROPIACION $PR_APROPIACION
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer        getIdPoSaldos()     Returns the current record's "id_po_saldos" value
 * @method integer        getIdObjGasto()     Returns the current record's "id_obj_gasto" value
 * @method integer        getIdApropiacion()  Returns the current record's "id_apropiacion" value
 * @method string         getAnoFiscal()      Returns the current record's "ano_fiscal" value
 * @method integer        getIdCpo()          Returns the current record's "id_cpo" value
 * @method timestamp      getFechaProceso()   Returns the current record's "fecha_proceso" value
 * @method decimal        getSaldo()          Returns the current record's "saldo" value
 * @method integer        getIdVigencia()     Returns the current record's "id_vigencia" value
 * @method OBJETOS_GASTO  getOBJETOSGASTO()   Returns the current record's "OBJETOS_GASTO" value
 * @method PROYECTOS      getPROYECTOS()      Returns the current record's "PROYECTOS" 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_PO_SALDOS   setIdPoSaldos()     Sets the current record's "id_po_saldos" value
 * @method PR_PO_SALDOS   setIdObjGasto()     Sets the current record's "id_obj_gasto" value
 * @method PR_PO_SALDOS   setIdApropiacion()  Sets the current record's "id_apropiacion" value
 * @method PR_PO_SALDOS   setAnoFiscal()      Sets the current record's "ano_fiscal" value
 * @method PR_PO_SALDOS   setIdCpo()          Sets the current record's "id_cpo" value
 * @method PR_PO_SALDOS   setFechaProceso()   Sets the current record's "fecha_proceso" value
 * @method PR_PO_SALDOS   setSaldo()          Sets the current record's "saldo" value
 * @method PR_PO_SALDOS   setIdVigencia()     Sets the current record's "id_vigencia" value
 * @method PR_PO_SALDOS   setOBJETOSGASTO()   Sets the current record's "OBJETOS_GASTO" value
 * @method PR_PO_SALDOS   setPROYECTOS()      Sets the current record's "PROYECTOS" value
 * @method PR_PO_SALDOS   setPRAPROPIACION()  Sets the current record's "PR_APROPIACION" value
 * @method PR_PO_SALDOS   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_PO_SALDOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_PO_SALDOS');
        $this->hasColumn('id_po_saldos', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_obj_gasto', '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('ano_fiscal', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('id_cpo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             '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('saldo', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             '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('OBJETOS_GASTO', array(
             'local' => 'id_obj_gasto',
             'foreign' => 'id'));

        $this->hasOne('PROYECTOS', array(
             'local' => 'id_cpo',
             'foreign' => 'id'));

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

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