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

/**
 * BaseTS_PAGO_OBL
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_pago_obl
 * @property integer $id_obligacion
 * @property integer $secuencia
 * @property integer $id_emision_pago
 * @property string $vigencia
 * @property integer $id_vigencia
 * @property decimal $valor
 * @property integer $id_medio_pago
 * @property integer $nro_orden_pago
 * @property string $nro_doc_medio
 * @property string $lote_no
 * @property integer $id_tercero
 * @property integer $id_rp
 * @property string $estado
 * @property integer $id_clase_pago
 * @property string $descripcion
 * @property string $benef_cheque
 * @property TS_MEDIO_PAGO $TS_MEDIO_PAGO
 * @property Doctrine_Collection $TS_ANUL_PAGOS
 * @property Doctrine_Collection $CM_ANUL_PAGOS
 * 
 * @method integer             getIdPagoObl()       Returns the current record's "id_pago_obl" value
 * @method integer             getIdObligacion()    Returns the current record's "id_obligacion" value
 * @method integer             getSecuencia()       Returns the current record's "secuencia" value
 * @method integer             getIdEmisionPago()   Returns the current record's "id_emision_pago" value
 * @method string              getVigencia()        Returns the current record's "vigencia" value
 * @method integer             getIdVigencia()      Returns the current record's "id_vigencia" value
 * @method decimal             getValor()           Returns the current record's "valor" value
 * @method integer             getIdMedioPago()     Returns the current record's "id_medio_pago" value
 * @method integer             getNroOrdenPago()    Returns the current record's "nro_orden_pago" value
 * @method string              getNroDocMedio()     Returns the current record's "nro_doc_medio" value
 * @method string              getLoteNo()          Returns the current record's "lote_no" value
 * @method integer             getIdTercero()       Returns the current record's "id_tercero" value
 * @method integer             getIdRp()            Returns the current record's "id_rp" value
 * @method string              getEstado()          Returns the current record's "estado" value
 * @method integer             getIdClasePago()     Returns the current record's "id_clase_pago" value
 * @method string              getDescripcion()     Returns the current record's "descripcion" value
 * @method string              getBenefCheque()     Returns the current record's "benef_cheque" value
 * @method TS_MEDIO_PAGO       getTSMEDIOPAGO()     Returns the current record's "TS_MEDIO_PAGO" value
 * @method Doctrine_Collection getTSANULPAGOS()     Returns the current record's "TS_ANUL_PAGOS" collection
 * @method Doctrine_Collection getCMANULPAGOS()     Returns the current record's "CM_ANUL_PAGOS" collection
 * @method TS_PAGO_OBL         setIdPagoObl()       Sets the current record's "id_pago_obl" value
 * @method TS_PAGO_OBL         setIdObligacion()    Sets the current record's "id_obligacion" value
 * @method TS_PAGO_OBL         setSecuencia()       Sets the current record's "secuencia" value
 * @method TS_PAGO_OBL         setIdEmisionPago()   Sets the current record's "id_emision_pago" value
 * @method TS_PAGO_OBL         setVigencia()        Sets the current record's "vigencia" value
 * @method TS_PAGO_OBL         setIdVigencia()      Sets the current record's "id_vigencia" value
 * @method TS_PAGO_OBL         setValor()           Sets the current record's "valor" value
 * @method TS_PAGO_OBL         setIdMedioPago()     Sets the current record's "id_medio_pago" value
 * @method TS_PAGO_OBL         setNroOrdenPago()    Sets the current record's "nro_orden_pago" value
 * @method TS_PAGO_OBL         setNroDocMedio()     Sets the current record's "nro_doc_medio" value
 * @method TS_PAGO_OBL         setLoteNo()          Sets the current record's "lote_no" value
 * @method TS_PAGO_OBL         setIdTercero()       Sets the current record's "id_tercero" value
 * @method TS_PAGO_OBL         setIdRp()            Sets the current record's "id_rp" value
 * @method TS_PAGO_OBL         setEstado()          Sets the current record's "estado" value
 * @method TS_PAGO_OBL         setIdClasePago()     Sets the current record's "id_clase_pago" value
 * @method TS_PAGO_OBL         setDescripcion()     Sets the current record's "descripcion" value
 * @method TS_PAGO_OBL         setBenefCheque()     Sets the current record's "benef_cheque" value
 * @method TS_PAGO_OBL         setTSMEDIOPAGO()     Sets the current record's "TS_MEDIO_PAGO" value
 * @method TS_PAGO_OBL         setTSANULPAGOS()     Sets the current record's "TS_ANUL_PAGOS" collection
 * @method TS_PAGO_OBL         setCMANULPAGOS()     Sets the current record's "CM_ANUL_PAGOS" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_PAGO_OBL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_PAGO_OBL');
        $this->hasColumn('id_pago_obl', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_obligacion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('secuencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_emision_pago', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('id_medio_pago', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nro_orden_pago', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nro_doc_medio', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('lote_no', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tercero', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_rp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('id_clase_pago', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('benef_cheque', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
    }

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

        $this->hasMany('TS_ANUL_PAGOS', array(
             'local' => 'id_pago_obl',
             'foreign' => 'id_pago_obl'));

        $this->hasMany('CM_ANUL_PAGOS', array(
             'local' => 'id_pago_obl',
             'foreign' => 'id_pago_obl'));
    }
}