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

/**
 * BaseTS_MOV_BANC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_ts_bn
 * @property integer $id_ts_cb
 * @property integer $id_ts_mb
 * @property integer $id_ts_td
 * @property integer $numero_doc
 * @property timestamp $fecha
 * @property timestamp $fecha_proc
 * @property integer $id_mae_ter
 * @property decimal $valor
 * @property string $observaciones
 * @property string $afecta_pac
 * @property string $usuariolog
 * @property timestamp $fechalog
 * @property string $oficina
 * @property integer $id_mineral_cb
 * @property integer $consecutivo_mb
 * @property integer $estado
 * @property INTERCEROS $INTERCEROS
 * @property RE_MINERAL $RE_MINERAL
 * @property TS_BN $TS_BN
 * @property TS_CB $TS_CB
 * @property TS_MB $TS_MB
 * @property TS_TD $TS_TD
 * @property Doctrine_Collection $TS_PAC
 * @property Doctrine_Collection $TS_MB_DEDUCCIONES
 * @property Doctrine_Collection $TS_ANU_MOV_BANC
 * @property Doctrine_Collection $TR_MV_DI
 * @property Doctrine_Collection $TR_DIS_LOTE
 * 
 * @method integer             getId()                Returns the current record's "id" 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 integer             getIdTsMb()            Returns the current record's "id_ts_mb" value
 * @method integer             getIdTsTd()            Returns the current record's "id_ts_td" value
 * @method integer             getNumeroDoc()         Returns the current record's "numero_doc" value
 * @method timestamp           getFecha()             Returns the current record's "fecha" value
 * @method timestamp           getFechaProc()         Returns the current record's "fecha_proc" value
 * @method integer             getIdMaeTer()          Returns the current record's "id_mae_ter" value
 * @method decimal             getValor()             Returns the current record's "valor" value
 * @method string              getObservaciones()     Returns the current record's "observaciones" value
 * @method string              getAfectaPac()         Returns the current record's "afecta_pac" value
 * @method string              getUsuariolog()        Returns the current record's "usuariolog" value
 * @method timestamp           getFechalog()          Returns the current record's "fechalog" value
 * @method string              getOficina()           Returns the current record's "oficina" value
 * @method integer             getIdMineralCb()       Returns the current record's "id_mineral_cb" value
 * @method integer             getConsecutivoMb()     Returns the current record's "consecutivo_mb" value
 * @method integer             getEstado()            Returns the current record's "estado" value
 * @method INTERCEROS          getINTERCEROS()        Returns the current record's "INTERCEROS" value
 * @method RE_MINERAL          getREMINERAL()         Returns the current record's "RE_MINERAL" 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_MB               getTSMB()              Returns the current record's "TS_MB" value
 * @method TS_TD               getTSTD()              Returns the current record's "TS_TD" value
 * @method Doctrine_Collection getTSPAC()             Returns the current record's "TS_PAC" collection
 * @method Doctrine_Collection getTSMBDEDUCCIONES()   Returns the current record's "TS_MB_DEDUCCIONES" collection
 * @method Doctrine_Collection getTSANUMOVBANC()      Returns the current record's "TS_ANU_MOV_BANC" collection
 * @method Doctrine_Collection getTRMVDI()            Returns the current record's "TR_MV_DI" collection
 * @method Doctrine_Collection getTRDISLOTE()         Returns the current record's "TR_DIS_LOTE" collection
 * @method TS_MOV_BANC         setId()                Sets the current record's "id" value
 * @method TS_MOV_BANC         setIdTsBn()            Sets the current record's "id_ts_bn" value
 * @method TS_MOV_BANC         setIdTsCb()            Sets the current record's "id_ts_cb" value
 * @method TS_MOV_BANC         setIdTsMb()            Sets the current record's "id_ts_mb" value
 * @method TS_MOV_BANC         setIdTsTd()            Sets the current record's "id_ts_td" value
 * @method TS_MOV_BANC         setNumeroDoc()         Sets the current record's "numero_doc" value
 * @method TS_MOV_BANC         setFecha()             Sets the current record's "fecha" value
 * @method TS_MOV_BANC         setFechaProc()         Sets the current record's "fecha_proc" value
 * @method TS_MOV_BANC         setIdMaeTer()          Sets the current record's "id_mae_ter" value
 * @method TS_MOV_BANC         setValor()             Sets the current record's "valor" value
 * @method TS_MOV_BANC         setObservaciones()     Sets the current record's "observaciones" value
 * @method TS_MOV_BANC         setAfectaPac()         Sets the current record's "afecta_pac" value
 * @method TS_MOV_BANC         setUsuariolog()        Sets the current record's "usuariolog" value
 * @method TS_MOV_BANC         setFechalog()          Sets the current record's "fechalog" value
 * @method TS_MOV_BANC         setOficina()           Sets the current record's "oficina" value
 * @method TS_MOV_BANC         setIdMineralCb()       Sets the current record's "id_mineral_cb" value
 * @method TS_MOV_BANC         setConsecutivoMb()     Sets the current record's "consecutivo_mb" value
 * @method TS_MOV_BANC         setEstado()            Sets the current record's "estado" value
 * @method TS_MOV_BANC         setINTERCEROS()        Sets the current record's "INTERCEROS" value
 * @method TS_MOV_BANC         setREMINERAL()         Sets the current record's "RE_MINERAL" value
 * @method TS_MOV_BANC         setTSBN()              Sets the current record's "TS_BN" value
 * @method TS_MOV_BANC         setTSCB()              Sets the current record's "TS_CB" value
 * @method TS_MOV_BANC         setTSMB()              Sets the current record's "TS_MB" value
 * @method TS_MOV_BANC         setTSTD()              Sets the current record's "TS_TD" value
 * @method TS_MOV_BANC         setTSPAC()             Sets the current record's "TS_PAC" collection
 * @method TS_MOV_BANC         setTSMBDEDUCCIONES()   Sets the current record's "TS_MB_DEDUCCIONES" collection
 * @method TS_MOV_BANC         setTSANUMOVBANC()      Sets the current record's "TS_ANU_MOV_BANC" collection
 * @method TS_MOV_BANC         setTRMVDI()            Sets the current record's "TR_MV_DI" collection
 * @method TS_MOV_BANC         setTRDISLOTE()         Sets the current record's "TR_DIS_LOTE" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_MOV_BANC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_MOV_BANC');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $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('id_ts_mb', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_ts_td', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('numero_doc', '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('fecha_proc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 22, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
        $this->hasColumn('observaciones', 'string', 3000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 3000,
             ));
        $this->hasColumn('afecta_pac', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('usuariolog', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fechalog', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('oficina', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('id_mineral_cb', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('consecutivo_mb', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('RE_MINERAL', array(
             'local' => 'id_mineral_cb',
             'foreign' => 'id_mineral'));

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

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

        $this->hasOne('TS_MB', array(
             'local' => 'id_ts_mb',
             'foreign' => 'id'));

        $this->hasOne('TS_TD', array(
             'local' => 'id_ts_td',
             'foreign' => 'id'));

        $this->hasMany('TS_PAC', array(
             'local' => 'id',
             'foreign' => 'id_mov_banc'));

        $this->hasMany('TS_MB_DEDUCCIONES', array(
             'local' => 'id',
             'foreign' => 'id_mov_banc'));

        $this->hasMany('TS_ANU_MOV_BANC', array(
             'local' => 'id',
             'foreign' => 'id_mov_banc'));

        $this->hasMany('TR_MV_DI', array(
             'local' => 'id',
             'foreign' => 'id_mov_bn'));

        $this->hasMany('TR_DIS_LOTE', array(
             'local' => 'id',
             'foreign' => 'id_mov_bn'));
    }
}