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

/**
 * BaseCM_SALDO_BANC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property decimal $id
 * @property string $vigencia
 * @property string $mes
 * @property timestamp $fecha
 * @property integer $id_ts_bn
 * @property integer $id_ts_cb
 * @property decimal $saldo_anterior
 * @property decimal $debito
 * @property decimal $credito
 * @property decimal $saldo_actual
 * @property CM_CB $CM_CB
 * @property TS_BN $TS_BN
 * 
 * @method decimal       getId()             Returns the current record's "id" value
 * @method string        getVigencia()       Returns the current record's "vigencia" value
 * @method string        getMes()            Returns the current record's "mes" value
 * @method timestamp     getFecha()          Returns the current record's "fecha" value
 * @method integer       getIdTsBn()         Returns the current record's "id_ts_bn" value
 * @method integer       getIdTsCb()         Returns the current record's "id_ts_cb" value
 * @method decimal       getSaldoAnterior()  Returns the current record's "saldo_anterior" value
 * @method decimal       getDebito()         Returns the current record's "debito" value
 * @method decimal       getCredito()        Returns the current record's "credito" value
 * @method decimal       getSaldoActual()    Returns the current record's "saldo_actual" value
 * @method CM_CB         getCMCB()           Returns the current record's "CM_CB" value
 * @method TS_BN         getTSBN()           Returns the current record's "TS_BN" value
 * @method CM_SALDO_BANC setId()             Sets the current record's "id" value
 * @method CM_SALDO_BANC setVigencia()       Sets the current record's "vigencia" value
 * @method CM_SALDO_BANC setMes()            Sets the current record's "mes" value
 * @method CM_SALDO_BANC setFecha()          Sets the current record's "fecha" value
 * @method CM_SALDO_BANC setIdTsBn()         Sets the current record's "id_ts_bn" value
 * @method CM_SALDO_BANC setIdTsCb()         Sets the current record's "id_ts_cb" value
 * @method CM_SALDO_BANC setSaldoAnterior()  Sets the current record's "saldo_anterior" value
 * @method CM_SALDO_BANC setDebito()         Sets the current record's "debito" value
 * @method CM_SALDO_BANC setCredito()        Sets the current record's "credito" value
 * @method CM_SALDO_BANC setSaldoActual()    Sets the current record's "saldo_actual" value
 * @method CM_SALDO_BANC setCMCB()           Sets the current record's "CM_CB" value
 * @method CM_SALDO_BANC setTSBN()           Sets the current record's "TS_BN" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCM_SALDO_BANC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CM_SALDO_BANC');
        $this->hasColumn('id', 'decimal', 22, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 22,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('mes', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             '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('id_ts_bn', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_ts_cb', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('saldo_anterior', 'decimal', 22, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
        $this->hasColumn('debito', 'decimal', 22, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
        $this->hasColumn('credito', 'decimal', 22, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
        $this->hasColumn('saldo_actual', 'decimal', 22, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
    }

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

        $this->hasOne('TS_BN', array(
             'local' => 'id_ts_bn',
             'foreign' => 'id_bn'));
    }
}