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

/**
 * BaseTS_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 TS_BN $TS_BN
 * @property TS_CB $TS_CB
 * 
 * @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 TS_BN         getTSBN()           Returns the current record's "TS_BN" value
 * @method TS_CB         getTSCB()           Returns the current record's "TS_CB" value
 * @method TS_SALDO_BANC setId()             Sets the current record's "id" value
 * @method TS_SALDO_BANC setVigencia()       Sets the current record's "vigencia" value
 * @method TS_SALDO_BANC setMes()            Sets the current record's "mes" value
 * @method TS_SALDO_BANC setFecha()          Sets the current record's "fecha" value
 * @method TS_SALDO_BANC setIdTsBn()         Sets the current record's "id_ts_bn" value
 * @method TS_SALDO_BANC setIdTsCb()         Sets the current record's "id_ts_cb" value
 * @method TS_SALDO_BANC setSaldoAnterior()  Sets the current record's "saldo_anterior" value
 * @method TS_SALDO_BANC setDebito()         Sets the current record's "debito" value
 * @method TS_SALDO_BANC setCredito()        Sets the current record's "credito" value
 * @method TS_SALDO_BANC setSaldoActual()    Sets the current record's "saldo_actual" value
 * @method TS_SALDO_BANC setTSBN()           Sets the current record's "TS_BN" value
 * @method TS_SALDO_BANC setTSCB()           Sets the current record's "TS_CB" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_SALDO_BANC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_SALDO_BANC');
        $this->hasColumn('id', 'decimal', 22, array(
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 22,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('mes', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_ts_bn', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_ts_cb', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('saldo_anterior', 'decimal', 22, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
        $this->hasColumn('debito', 'decimal', 22, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
        $this->hasColumn('credito', 'decimal', 22, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
        $this->hasColumn('saldo_actual', 'decimal', 22, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
    }

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

        $this->hasOne('TS_CB', array(
             'local' => 'id_ts_cb',
             'foreign' => 'id_cb'));
    }
}