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

/**
 * BaseTR_DIS_VAL
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_dis_val
 * @property string $lote
 * @property integer $id_mae_ter
 * @property integer $id_bn
 * @property integer $id_cb
 * @property integer $id_mineral
 * @property integer $valor
 * @property integer $des_val
 * @property integer $id_tip_par
 * @property integer $valor_total
 * @property timestamp $fecha_proc
 * @property timestamp $fecha_sys
 * @property string $usuario
 * @property integer $estado
 * @property INTERCEROS $INTERCEROS
 * @property TS_BN $TS_BN
 * @property TS_CB $TS_CB
 * @property RE_MINERAL $RE_MINERAL
 * @property TS_TIPO_PARTIDA $TS_TIPO_PARTIDA
 * @property Doctrine_Collection $TS_DIS_REG
 * @property Doctrine_Collection $TR_MV_DI
 * @property Doctrine_Collection $TR_DIS_LOTE
 * 
 * @method integer             getIdDisVal()        Returns the current record's "id_dis_val" value
 * @method string              getLote()            Returns the current record's "lote" value
 * @method integer             getIdMaeTer()        Returns the current record's "id_mae_ter" value
 * @method integer             getIdBn()            Returns the current record's "id_bn" value
 * @method integer             getIdCb()            Returns the current record's "id_cb" value
 * @method integer             getIdMineral()       Returns the current record's "id_mineral" value
 * @method integer             getValor()           Returns the current record's "valor" value
 * @method integer             getDesVal()          Returns the current record's "des_val" value
 * @method integer             getIdTipPar()        Returns the current record's "id_tip_par" value
 * @method integer             getValorTotal()      Returns the current record's "valor_total" value
 * @method timestamp           getFechaProc()       Returns the current record's "fecha_proc" value
 * @method timestamp           getFechaSys()        Returns the current record's "fecha_sys" value
 * @method string              getUsuario()         Returns the current record's "usuario" value
 * @method integer             getEstado()          Returns the current record's "estado" value
 * @method INTERCEROS          getINTERCEROS()      Returns the current record's "INTERCEROS" 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 RE_MINERAL          getREMINERAL()       Returns the current record's "RE_MINERAL" value
 * @method TS_TIPO_PARTIDA     getTSTIPOPARTIDA()   Returns the current record's "TS_TIPO_PARTIDA" value
 * @method Doctrine_Collection getTSDISREG()        Returns the current record's "TS_DIS_REG" 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 TR_DIS_VAL          setIdDisVal()        Sets the current record's "id_dis_val" value
 * @method TR_DIS_VAL          setLote()            Sets the current record's "lote" value
 * @method TR_DIS_VAL          setIdMaeTer()        Sets the current record's "id_mae_ter" value
 * @method TR_DIS_VAL          setIdBn()            Sets the current record's "id_bn" value
 * @method TR_DIS_VAL          setIdCb()            Sets the current record's "id_cb" value
 * @method TR_DIS_VAL          setIdMineral()       Sets the current record's "id_mineral" value
 * @method TR_DIS_VAL          setValor()           Sets the current record's "valor" value
 * @method TR_DIS_VAL          setDesVal()          Sets the current record's "des_val" value
 * @method TR_DIS_VAL          setIdTipPar()        Sets the current record's "id_tip_par" value
 * @method TR_DIS_VAL          setValorTotal()      Sets the current record's "valor_total" value
 * @method TR_DIS_VAL          setFechaProc()       Sets the current record's "fecha_proc" value
 * @method TR_DIS_VAL          setFechaSys()        Sets the current record's "fecha_sys" value
 * @method TR_DIS_VAL          setUsuario()         Sets the current record's "usuario" value
 * @method TR_DIS_VAL          setEstado()          Sets the current record's "estado" value
 * @method TR_DIS_VAL          setINTERCEROS()      Sets the current record's "INTERCEROS" value
 * @method TR_DIS_VAL          setTSBN()            Sets the current record's "TS_BN" value
 * @method TR_DIS_VAL          setTSCB()            Sets the current record's "TS_CB" value
 * @method TR_DIS_VAL          setREMINERAL()       Sets the current record's "RE_MINERAL" value
 * @method TR_DIS_VAL          setTSTIPOPARTIDA()   Sets the current record's "TS_TIPO_PARTIDA" value
 * @method TR_DIS_VAL          setTSDISREG()        Sets the current record's "TS_DIS_REG" collection
 * @method TR_DIS_VAL          setTRMVDI()          Sets the current record's "TR_MV_DI" collection
 * @method TR_DIS_VAL          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 BaseTR_DIS_VAL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TR_DIS_VAL');
        $this->hasColumn('id_dis_val', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('lote', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_bn', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cb', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mineral', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('des_val', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tip_par', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_total', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_proc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $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('TS_BN', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

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

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

        $this->hasOne('TS_TIPO_PARTIDA', array(
             'local' => 'id_tip_par',
             'foreign' => 'id_tip_par'));

        $this->hasMany('TS_DIS_REG', array(
             'local' => 'id_dis_val',
             'foreign' => 'id_dis_val'));

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

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