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

/**
 * BaseTS_DIS_REG
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_dis_reg
 * @property timestamp $fecha_proc
 * @property integer $id_dis_val
 * @property integer $id_bn
 * @property integer $id_cb
 * @property integer $id_mineral
 * @property integer $id_t_ctr
 * @property integer $id_periodo
 * @property timestamp $vigencia
 * @property string $concepto
 * @property string $produccion
 * @property string $precio
 * @property string $porcentaje
 * @property string $distribucion
 * @property timestamp $fecha_sys
 * @property string $usuario
 * @property integer $estado
 * @property RE_MINERAL $RE_MINERAL
 * @property RE_PERIODO $RE_PERIODO
 * @property RE_T_CONTRAPRESTACION $RE_T_CONTRAPRESTACION
 * @property TR_DIS_VAL $TR_DIS_VAL
 * @property TS_BN $TS_BN
 * @property TS_CB $TS_CB
 * @property Doctrine_Collection $TS_OBL_REG
 * 
 * @method integer               getIdDisReg()              Returns the current record's "id_dis_reg" value
 * @method timestamp             getFechaProc()             Returns the current record's "fecha_proc" value
 * @method integer               getIdDisVal()              Returns the current record's "id_dis_val" 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               getIdTCtr()                Returns the current record's "id_t_ctr" value
 * @method integer               getIdPeriodo()             Returns the current record's "id_periodo" value
 * @method timestamp             getVigencia()              Returns the current record's "vigencia" value
 * @method string                getConcepto()              Returns the current record's "concepto" value
 * @method string                getProduccion()            Returns the current record's "produccion" value
 * @method string                getPrecio()                Returns the current record's "precio" value
 * @method string                getPorcentaje()            Returns the current record's "porcentaje" value
 * @method string                getDistribucion()          Returns the current record's "distribucion" 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 RE_MINERAL            getREMINERAL()             Returns the current record's "RE_MINERAL" value
 * @method RE_PERIODO            getREPERIODO()             Returns the current record's "RE_PERIODO" value
 * @method RE_T_CONTRAPRESTACION getRETCONTRAPRESTACION()   Returns the current record's "RE_T_CONTRAPRESTACION" value
 * @method TR_DIS_VAL            getTRDISVAL()              Returns the current record's "TR_DIS_VAL" 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 Doctrine_Collection   getTSOBLREG()              Returns the current record's "TS_OBL_REG" collection
 * @method TS_DIS_REG            setIdDisReg()              Sets the current record's "id_dis_reg" value
 * @method TS_DIS_REG            setFechaProc()             Sets the current record's "fecha_proc" value
 * @method TS_DIS_REG            setIdDisVal()              Sets the current record's "id_dis_val" value
 * @method TS_DIS_REG            setIdBn()                  Sets the current record's "id_bn" value
 * @method TS_DIS_REG            setIdCb()                  Sets the current record's "id_cb" value
 * @method TS_DIS_REG            setIdMineral()             Sets the current record's "id_mineral" value
 * @method TS_DIS_REG            setIdTCtr()                Sets the current record's "id_t_ctr" value
 * @method TS_DIS_REG            setIdPeriodo()             Sets the current record's "id_periodo" value
 * @method TS_DIS_REG            setVigencia()              Sets the current record's "vigencia" value
 * @method TS_DIS_REG            setConcepto()              Sets the current record's "concepto" value
 * @method TS_DIS_REG            setProduccion()            Sets the current record's "produccion" value
 * @method TS_DIS_REG            setPrecio()                Sets the current record's "precio" value
 * @method TS_DIS_REG            setPorcentaje()            Sets the current record's "porcentaje" value
 * @method TS_DIS_REG            setDistribucion()          Sets the current record's "distribucion" value
 * @method TS_DIS_REG            setFechaSys()              Sets the current record's "fecha_sys" value
 * @method TS_DIS_REG            setUsuario()               Sets the current record's "usuario" value
 * @method TS_DIS_REG            setEstado()                Sets the current record's "estado" value
 * @method TS_DIS_REG            setREMINERAL()             Sets the current record's "RE_MINERAL" value
 * @method TS_DIS_REG            setREPERIODO()             Sets the current record's "RE_PERIODO" value
 * @method TS_DIS_REG            setRETCONTRAPRESTACION()   Sets the current record's "RE_T_CONTRAPRESTACION" value
 * @method TS_DIS_REG            setTRDISVAL()              Sets the current record's "TR_DIS_VAL" value
 * @method TS_DIS_REG            setTSBN()                  Sets the current record's "TS_BN" value
 * @method TS_DIS_REG            setTSCB()                  Sets the current record's "TS_CB" value
 * @method TS_DIS_REG            setTSOBLREG()              Sets the current record's "TS_OBL_REG" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_DIS_REG extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_DIS_REG');
        $this->hasColumn('id_dis_reg', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('fecha_proc', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_dis_val', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_bn', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cb', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mineral', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_t_ctr', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_periodo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('concepto', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('produccion', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('precio', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('porcentaje', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('distribucion', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $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('RE_MINERAL', array(
             'local' => 'id_mineral',
             'foreign' => 'id_mineral'));

        $this->hasOne('RE_PERIODO', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasOne('RE_T_CONTRAPRESTACION', array(
             'local' => 'id_t_ctr',
             'foreign' => 'id_tipo_con'));

        $this->hasOne('TR_DIS_VAL', array(
             'local' => 'id_dis_val',
             'foreign' => 'id_dis_val'));

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

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

        $this->hasMany('TS_OBL_REG', array(
             'local' => 'id_dis_reg',
             'foreign' => 'id_dis_reg'));
    }
}