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

/**
 * BaseTS_EMISION_PAGO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_emision_pago
 * @property integer $id_bn
 * @property integer $id_cb
 * @property integer $id_tipo_rec
 * @property integer $id_mae_ter
 * @property integer $id_rp
 * @property integer $id_obligacion
 * @property string $lote_no
 * @property timestamp $fecha_proc
 * @property string $vigencia
 * @property integer $id_vigencia
 * @property timestamp $fecha_sys
 * @property string $usuario
 * @property string $estado
 * @property integer $id_clase
 * @property INTERCEROS $INTERCEROS
 * @property PR_TIPO_REC $PR_TIPO_REC
 * @property TS_BN $TS_BN
 * @property TS_CB $TS_CB
 * 
 * @method integer         getIdEmisionPago()   Returns the current record's "id_emision_pago" 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         getIdTipoRec()       Returns the current record's "id_tipo_rec" value
 * @method integer         getIdMaeTer()        Returns the current record's "id_mae_ter" value
 * @method integer         getIdRp()            Returns the current record's "id_rp" value
 * @method integer         getIdObligacion()    Returns the current record's "id_obligacion" value
 * @method string          getLoteNo()          Returns the current record's "lote_no" value
 * @method timestamp       getFechaProc()       Returns the current record's "fecha_proc" value
 * @method string          getVigencia()        Returns the current record's "vigencia" value
 * @method integer         getIdVigencia()      Returns the current record's "id_vigencia" value
 * @method timestamp       getFechaSys()        Returns the current record's "fecha_sys" value
 * @method string          getUsuario()         Returns the current record's "usuario" value
 * @method string          getEstado()          Returns the current record's "estado" value
 * @method integer         getIdClase()         Returns the current record's "id_clase" value
 * @method INTERCEROS      getINTERCEROS()      Returns the current record's "INTERCEROS" value
 * @method PR_TIPO_REC     getPRTIPOREC()       Returns the current record's "PR_TIPO_REC" 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 TS_EMISION_PAGO setIdEmisionPago()   Sets the current record's "id_emision_pago" value
 * @method TS_EMISION_PAGO setIdBn()            Sets the current record's "id_bn" value
 * @method TS_EMISION_PAGO setIdCb()            Sets the current record's "id_cb" value
 * @method TS_EMISION_PAGO setIdTipoRec()       Sets the current record's "id_tipo_rec" value
 * @method TS_EMISION_PAGO setIdMaeTer()        Sets the current record's "id_mae_ter" value
 * @method TS_EMISION_PAGO setIdRp()            Sets the current record's "id_rp" value
 * @method TS_EMISION_PAGO setIdObligacion()    Sets the current record's "id_obligacion" value
 * @method TS_EMISION_PAGO setLoteNo()          Sets the current record's "lote_no" value
 * @method TS_EMISION_PAGO setFechaProc()       Sets the current record's "fecha_proc" value
 * @method TS_EMISION_PAGO setVigencia()        Sets the current record's "vigencia" value
 * @method TS_EMISION_PAGO setIdVigencia()      Sets the current record's "id_vigencia" value
 * @method TS_EMISION_PAGO setFechaSys()        Sets the current record's "fecha_sys" value
 * @method TS_EMISION_PAGO setUsuario()         Sets the current record's "usuario" value
 * @method TS_EMISION_PAGO setEstado()          Sets the current record's "estado" value
 * @method TS_EMISION_PAGO setIdClase()         Sets the current record's "id_clase" value
 * @method TS_EMISION_PAGO setINTERCEROS()      Sets the current record's "INTERCEROS" value
 * @method TS_EMISION_PAGO setPRTIPOREC()       Sets the current record's "PR_TIPO_REC" value
 * @method TS_EMISION_PAGO setTSBN()            Sets the current record's "TS_BN" value
 * @method TS_EMISION_PAGO setTSCB()            Sets the current record's "TS_CB" 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_EMISION_PAGO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_EMISION_PAGO');
        $this->hasColumn('id_emision_pago', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_bn', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cb', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_rec', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', '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('id_obligacion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             '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('fecha_proc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $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('fecha_sys', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             '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', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('PR_TIPO_REC', array(
             'local' => 'id_tipo_rec',
             'foreign' => 'id'));

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

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