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

/**
 * BaseTS_OBL_REG
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_obl_reg
 * @property integer $id_dis_reg
 * @property timestamp $fecha_proc
 * @property integer $id_liq
 * @property decimal $valor_ctr
 * @property integer $id_act_ben_reg
 * @property string $usuario
 * @property timestamp $fecha_sys
 * @property integer $estado
 * @property decimal $valor_neto
 * @property decimal $dsctocuatroxmil
 * @property decimal $valor_girar
 * @property string $vigencia
 * @property RE_LIQ $RE_LIQ
 * @property TS_ACT_BEN_REG $TS_ACT_BEN_REG
 * @property TS_DIS_REG $TS_DIS_REG
 * 
 * @method integer        getIdOblReg()        Returns the current record's "id_obl_reg" value
 * @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        getIdLiq()           Returns the current record's "id_liq" value
 * @method decimal        getValorCtr()        Returns the current record's "valor_ctr" value
 * @method integer        getIdActBenReg()     Returns the current record's "id_act_ben_reg" value
 * @method string         getUsuario()         Returns the current record's "usuario" value
 * @method timestamp      getFechaSys()        Returns the current record's "fecha_sys" value
 * @method integer        getEstado()          Returns the current record's "estado" value
 * @method decimal        getValorNeto()       Returns the current record's "valor_neto" value
 * @method decimal        getDsctocuatroxmil() Returns the current record's "dsctocuatroxmil" value
 * @method decimal        getValorGirar()      Returns the current record's "valor_girar" value
 * @method string         getVigencia()        Returns the current record's "vigencia" value
 * @method RE_LIQ         getRELIQ()           Returns the current record's "RE_LIQ" value
 * @method TS_ACT_BEN_REG getTSACTBENREG()     Returns the current record's "TS_ACT_BEN_REG" value
 * @method TS_DIS_REG     getTSDISREG()        Returns the current record's "TS_DIS_REG" value
 * @method TS_OBL_REG     setIdOblReg()        Sets the current record's "id_obl_reg" value
 * @method TS_OBL_REG     setIdDisReg()        Sets the current record's "id_dis_reg" value
 * @method TS_OBL_REG     setFechaProc()       Sets the current record's "fecha_proc" value
 * @method TS_OBL_REG     setIdLiq()           Sets the current record's "id_liq" value
 * @method TS_OBL_REG     setValorCtr()        Sets the current record's "valor_ctr" value
 * @method TS_OBL_REG     setIdActBenReg()     Sets the current record's "id_act_ben_reg" value
 * @method TS_OBL_REG     setUsuario()         Sets the current record's "usuario" value
 * @method TS_OBL_REG     setFechaSys()        Sets the current record's "fecha_sys" value
 * @method TS_OBL_REG     setEstado()          Sets the current record's "estado" value
 * @method TS_OBL_REG     setValorNeto()       Sets the current record's "valor_neto" value
 * @method TS_OBL_REG     setDsctocuatroxmil() Sets the current record's "dsctocuatroxmil" value
 * @method TS_OBL_REG     setValorGirar()      Sets the current record's "valor_girar" value
 * @method TS_OBL_REG     setVigencia()        Sets the current record's "vigencia" value
 * @method TS_OBL_REG     setRELIQ()           Sets the current record's "RE_LIQ" value
 * @method TS_OBL_REG     setTSACTBENREG()     Sets the current record's "TS_ACT_BEN_REG" value
 * @method TS_OBL_REG     setTSDISREG()        Sets the current record's "TS_DIS_REG" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_OBL_REG extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_OBL_REG');
        $this->hasColumn('id_obl_reg', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_dis_reg', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_proc', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_liq', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_ctr', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('id_act_ben_reg', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('usuario', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('valor_neto', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('dsctocuatroxmil', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_girar', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
    }

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

        $this->hasOne('TS_ACT_BEN_REG', array(
             'local' => 'id_act_ben_reg',
             'foreign' => 'id_act_ben_reg'));

        $this->hasOne('TS_DIS_REG', array(
             'local' => 'id_dis_reg',
             'foreign' => 'id_dis_reg'));
    }
}