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

/**
 * BaseCM_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_mae_ter
 * @property timestamp $fecha_proc
 * @property string $vigencia
 * @property integer $id_vigencia
 * @property timestamp $fechalog
 * @property string $usuariolog
 * @property string $estado
 * @property integer $id_clase
 * @property integer $id_caja_menor
 * @property CM_CAJA_MENOR $CM_CAJA_MENOR
 * @property INTERCEROS $INTERCEROS
 * @property TS_BN $TS_BN
 * @property CM_CB $CM_CB
 * @property Doctrine_Collection $CM_PAGO_OBL
 * 
 * @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             getIdMaeTer()        Returns the current record's "id_mae_ter" 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           getFechalog()        Returns the current record's "fechalog" value
 * @method string              getUsuariolog()      Returns the current record's "usuariolog" value
 * @method string              getEstado()          Returns the current record's "estado" value
 * @method integer             getIdClase()         Returns the current record's "id_clase" value
 * @method integer             getIdCajaMenor()     Returns the current record's "id_caja_menor" value
 * @method CM_CAJA_MENOR       getCMCAJAMENOR()     Returns the current record's "CM_CAJA_MENOR" value
 * @method INTERCEROS          getINTERCEROS()      Returns the current record's "INTERCEROS" value
 * @method TS_BN               getTSBN()            Returns the current record's "TS_BN" value
 * @method CM_CB               getCMCB()            Returns the current record's "CM_CB" value
 * @method Doctrine_Collection getCMPAGOOBL()       Returns the current record's "CM_PAGO_OBL" collection
 * @method CM_EMISION_PAGO     setIdEmisionPago()   Sets the current record's "id_emision_pago" value
 * @method CM_EMISION_PAGO     setIdBn()            Sets the current record's "id_bn" value
 * @method CM_EMISION_PAGO     setIdCb()            Sets the current record's "id_cb" value
 * @method CM_EMISION_PAGO     setIdMaeTer()        Sets the current record's "id_mae_ter" value
 * @method CM_EMISION_PAGO     setFechaProc()       Sets the current record's "fecha_proc" value
 * @method CM_EMISION_PAGO     setVigencia()        Sets the current record's "vigencia" value
 * @method CM_EMISION_PAGO     setIdVigencia()      Sets the current record's "id_vigencia" value
 * @method CM_EMISION_PAGO     setFechalog()        Sets the current record's "fechalog" value
 * @method CM_EMISION_PAGO     setUsuariolog()      Sets the current record's "usuariolog" value
 * @method CM_EMISION_PAGO     setEstado()          Sets the current record's "estado" value
 * @method CM_EMISION_PAGO     setIdClase()         Sets the current record's "id_clase" value
 * @method CM_EMISION_PAGO     setIdCajaMenor()     Sets the current record's "id_caja_menor" value
 * @method CM_EMISION_PAGO     setCMCAJAMENOR()     Sets the current record's "CM_CAJA_MENOR" value
 * @method CM_EMISION_PAGO     setINTERCEROS()      Sets the current record's "INTERCEROS" value
 * @method CM_EMISION_PAGO     setTSBN()            Sets the current record's "TS_BN" value
 * @method CM_EMISION_PAGO     setCMCB()            Sets the current record's "CM_CB" value
 * @method CM_EMISION_PAGO     setCMPAGOOBL()       Sets the current record's "CM_PAGO_OBL" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCM_EMISION_PAGO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CM_EMISION_PAGO');
        $this->hasColumn('id_emision_pago', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             '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_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             '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('fechalog', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuariolog', '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,
             ));
        $this->hasColumn('id_caja_menor', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

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

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

        $this->hasMany('CM_PAGO_OBL', array(
             'local' => 'id_emision_pago',
             'foreign' => 'id_emision_pago'));
    }
}