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

/**
 * BaseCM_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 integer $id_caja_menor
 * @property CM_CAJA_MENOR $CM_CAJA_MENOR
 * @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 integer       getIdCajaMenor()   Returns the current record's "id_caja_menor" value
 * @method CM_CAJA_MENOR getCMCAJAMENOR()   Returns the current record's "CM_CAJA_MENOR" value
 * @method INTERCEROS    getINTERCEROS()    Returns the current record's "INTERCEROS" value
 * @method CM_SALDOS_ACR setIdSaldosAcr()   Sets the current record's "id_saldos_acr" value
 * @method CM_SALDOS_ACR setIdTercero()     Sets the current record's "id_tercero" value
 * @method CM_SALDOS_ACR setFecha()         Sets the current record's "fecha" value
 * @method CM_SALDOS_ACR setSaldoInicial()  Sets the current record's "saldo_inicial" value
 * @method CM_SALDOS_ACR setCredito()       Sets the current record's "credito" value
 * @method CM_SALDOS_ACR setDebito()        Sets the current record's "debito" value
 * @method CM_SALDOS_ACR setSaldoFinal()    Sets the current record's "saldo_final" value
 * @method CM_SALDOS_ACR setIdCajaMenor()   Sets the current record's "id_caja_menor" value
 * @method CM_SALDOS_ACR setCMCAJAMENOR()   Sets the current record's "CM_CAJA_MENOR" value
 * @method CM_SALDOS_ACR setINTERCEROS()    Sets the current record's "INTERCEROS" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCM_SALDOS_ACR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CM_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,
             ));
        $this->hasColumn('id_caja_menor', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_tercero',
             'foreign' => 'id_mae_ter'));
    }
}