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

/**
 * BaseTR_DIS_LOTE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_dis_lote
 * @property integer $id_dis_val
 * @property integer $id_mv_di
 * @property integer $id_mov_bn
 * @property decimal $valor
 * @property integer $estado
 * @property timestamp $fecha_proc
 * @property TR_DIS_VAL $TR_DIS_VAL
 * @property TS_MOV_BANC $TS_MOV_BANC
 * 
 * @method integer     getIdDisLote()   Returns the current record's "id_dis_lote" value
 * @method integer     getIdDisVal()    Returns the current record's "id_dis_val" value
 * @method integer     getIdMvDi()      Returns the current record's "id_mv_di" value
 * @method integer     getIdMovBn()     Returns the current record's "id_mov_bn" value
 * @method decimal     getValor()       Returns the current record's "valor" value
 * @method integer     getEstado()      Returns the current record's "estado" value
 * @method timestamp   getFechaProc()   Returns the current record's "fecha_proc" value
 * @method TR_DIS_VAL  getTRDISVAL()    Returns the current record's "TR_DIS_VAL" value
 * @method TS_MOV_BANC getTSMOVBANC()   Returns the current record's "TS_MOV_BANC" value
 * @method TR_DIS_LOTE setIdDisLote()   Sets the current record's "id_dis_lote" value
 * @method TR_DIS_LOTE setIdDisVal()    Sets the current record's "id_dis_val" value
 * @method TR_DIS_LOTE setIdMvDi()      Sets the current record's "id_mv_di" value
 * @method TR_DIS_LOTE setIdMovBn()     Sets the current record's "id_mov_bn" value
 * @method TR_DIS_LOTE setValor()       Sets the current record's "valor" value
 * @method TR_DIS_LOTE setEstado()      Sets the current record's "estado" value
 * @method TR_DIS_LOTE setFechaProc()   Sets the current record's "fecha_proc" value
 * @method TR_DIS_LOTE setTRDISVAL()    Sets the current record's "TR_DIS_VAL" value
 * @method TR_DIS_LOTE setTSMOVBANC()   Sets the current record's "TS_MOV_BANC" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTR_DIS_LOTE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TR_DIS_LOTE');
        $this->hasColumn('id_dis_lote', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_dis_val', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mv_di', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mov_bn', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_proc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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

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