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

/**
 * BaseTS_SALDOS_ACR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $id_saldos_acr
 * @property integer $id_tercero
 * @property timestamp $fecha
 * @property decimal $saldo_inicial
 * @property decimal $credito
 * @property decimal $debito
 * @property decimal $saldo_final
 * @property INTERCEROS $INTERCEROS
 * 
 * @method string        getIdSaldosAcr()   Returns the current record's "id_saldos_acr" value
 * @method integer       getIdTercero()     Returns the current record's "id_tercero" value
 * @method timestamp     getFecha()         Returns the current record's "fecha" value
 * @method decimal       getSaldoInicial()  Returns the current record's "saldo_inicial" value
 * @method decimal       getCredito()       Returns the current record's "credito" value
 * @method decimal       getDebito()        Returns the current record's "debito" value
 * @method decimal       getSaldoFinal()    Returns the current record's "saldo_final" value
 * @method INTERCEROS    getINTERCEROS()    Returns the current record's "INTERCEROS" value
 * @method TS_SALDOS_ACR setIdSaldosAcr()   Sets the current record's "id_saldos_acr" value
 * @method TS_SALDOS_ACR setIdTercero()     Sets the current record's "id_tercero" value
 * @method TS_SALDOS_ACR setFecha()         Sets the current record's "fecha" value
 * @method TS_SALDOS_ACR setSaldoInicial()  Sets the current record's "saldo_inicial" value
 * @method TS_SALDOS_ACR setCredito()       Sets the current record's "credito" value
 * @method TS_SALDOS_ACR setDebito()        Sets the current record's "debito" value
 * @method TS_SALDOS_ACR setSaldoFinal()    Sets the current record's "saldo_final" value
 * @method TS_SALDOS_ACR setINTERCEROS()    Sets the current record's "INTERCEROS" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_SALDOS_ACR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_SALDOS_ACR');
        $this->hasColumn('id_saldos_acr', 'string', 20, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tercero', '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('saldo_inicial', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('credito', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('debito', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('saldo_final', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('INTERCEROS', array(
             'local' => 'id_tercero',
             'foreign' => 'id_mae_ter'));
    }
}