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

/**
 * BaseRE_SALDO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_recaudo
 * @property integer $id_anhos
 * @property integer $id_meses
 * @property decimal $saldo_anterior
 * @property decimal $recaudado
 * @property decimal $distribuido
 * @property decimal $saldo_actual
 * @property ANHOS $ANHOS
 * @property MESES $MESES
 * @property RE_RECAUDO $RE_RECAUDO
 * 
 * @method integer    getIdRecaudo()      Returns the current record's "id_recaudo" value
 * @method integer    getIdAnhos()        Returns the current record's "id_anhos" value
 * @method integer    getIdMeses()        Returns the current record's "id_meses" value
 * @method decimal    getSaldoAnterior()  Returns the current record's "saldo_anterior" value
 * @method decimal    getRecaudado()      Returns the current record's "recaudado" value
 * @method decimal    getDistribuido()    Returns the current record's "distribuido" value
 * @method decimal    getSaldoActual()    Returns the current record's "saldo_actual" value
 * @method ANHOS      getANHOS()          Returns the current record's "ANHOS" value
 * @method MESES      getMESES()          Returns the current record's "MESES" value
 * @method RE_RECAUDO getRERECAUDO()      Returns the current record's "RE_RECAUDO" value
 * @method RE_SALDO   setIdRecaudo()      Sets the current record's "id_recaudo" value
 * @method RE_SALDO   setIdAnhos()        Sets the current record's "id_anhos" value
 * @method RE_SALDO   setIdMeses()        Sets the current record's "id_meses" value
 * @method RE_SALDO   setSaldoAnterior()  Sets the current record's "saldo_anterior" value
 * @method RE_SALDO   setRecaudado()      Sets the current record's "recaudado" value
 * @method RE_SALDO   setDistribuido()    Sets the current record's "distribuido" value
 * @method RE_SALDO   setSaldoActual()    Sets the current record's "saldo_actual" value
 * @method RE_SALDO   setANHOS()          Sets the current record's "ANHOS" value
 * @method RE_SALDO   setMESES()          Sets the current record's "MESES" value
 * @method RE_SALDO   setRERECAUDO()      Sets the current record's "RE_RECAUDO" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_SALDO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_SALDO');
        $this->hasColumn('id_recaudo', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_anhos', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_meses', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('saldo_anterior', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('recaudado', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('distribuido', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('saldo_actual', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 18,
             ));
    }

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

        $this->hasOne('MESES', array(
             'local' => 'id_meses',
             'foreign' => 'id_meses'));

        $this->hasOne('RE_RECAUDO', array(
             'local' => 'id_recaudo',
             'foreign' => 'id_recaudo'));
    }
}