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

/**
 * BaseTR_MV_DI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_mv_di
 * @property integer $valor_rec
 * @property integer $valor_dis
 * @property integer $saldo
 * @property integer $id_dis_val
 * @property integer $id_mov_bn
 * @property TR_DIS_VAL $TR_DIS_VAL
 * @property TS_MOV_BANC $TS_MOV_BANC
 * 
 * @method integer     getIdMvDi()      Returns the current record's "id_mv_di" value
 * @method integer     getValorRec()    Returns the current record's "valor_rec" value
 * @method integer     getValorDis()    Returns the current record's "valor_dis" value
 * @method integer     getSaldo()       Returns the current record's "saldo" value
 * @method integer     getIdDisVal()    Returns the current record's "id_dis_val" value
 * @method integer     getIdMovBn()     Returns the current record's "id_mov_bn" 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_MV_DI    setIdMvDi()      Sets the current record's "id_mv_di" value
 * @method TR_MV_DI    setValorRec()    Sets the current record's "valor_rec" value
 * @method TR_MV_DI    setValorDis()    Sets the current record's "valor_dis" value
 * @method TR_MV_DI    setSaldo()       Sets the current record's "saldo" value
 * @method TR_MV_DI    setIdDisVal()    Sets the current record's "id_dis_val" value
 * @method TR_MV_DI    setIdMovBn()     Sets the current record's "id_mov_bn" value
 * @method TR_MV_DI    setTRDISVAL()    Sets the current record's "TR_DIS_VAL" value
 * @method TR_MV_DI    setTSMOVBANC()   Sets the current record's "TS_MOV_BANC" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTR_MV_DI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TR_MV_DI');
        $this->hasColumn('id_mv_di', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('valor_rec', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_dis', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('saldo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_dis_val', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mov_bn', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

    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'));
    }
}