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

/**
 * BaseCONS_PG
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_pg
 * @property integer $id_rp
 * @property integer $id_cdp
 * @property decimal $valor_compromiso
 * @property decimal $valor_mensual
 * @property integer $id_clase_admin
 * @property integer $no_acto_admin
 * @property timestamp $fecha_inicio
 * @property timestamp $fecha_fin
 * @property integer $meses
 * @property integer $dias
 * @property integer $id_ciudad
 * @property integer $id_area
 * @property integer $id_tercero
 * @property integer $id_mp
 * @property integer $id_ts_bn
 * @property integer $id_ts_cb
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property integer $id_tipo_traba_contra
 * 
 * @method integer   getIdPg()                 Returns the current record's "id_pg" value
 * @method integer   getIdRp()                 Returns the current record's "id_rp" value
 * @method integer   getIdCdp()                Returns the current record's "id_cdp" value
 * @method decimal   getValorCompromiso()      Returns the current record's "valor_compromiso" value
 * @method decimal   getValorMensual()         Returns the current record's "valor_mensual" value
 * @method integer   getIdClaseAdmin()         Returns the current record's "id_clase_admin" value
 * @method integer   getNoActoAdmin()          Returns the current record's "no_acto_admin" value
 * @method timestamp getFechaInicio()          Returns the current record's "fecha_inicio" value
 * @method timestamp getFechaFin()             Returns the current record's "fecha_fin" value
 * @method integer   getMeses()                Returns the current record's "meses" value
 * @method integer   getDias()                 Returns the current record's "dias" value
 * @method integer   getIdCiudad()             Returns the current record's "id_ciudad" value
 * @method integer   getIdArea()               Returns the current record's "id_area" value
 * @method integer   getIdTercero()            Returns the current record's "id_tercero" value
 * @method integer   getIdMp()                 Returns the current record's "id_mp" value
 * @method integer   getIdTsBn()               Returns the current record's "id_ts_bn" value
 * @method integer   getIdTsCb()               Returns the current record's "id_ts_cb" value
 * @method integer   getIdVigencia()           Returns the current record's "id_vigencia" value
 * @method string    getVigencia()             Returns the current record's "vigencia" value
 * @method integer   getIdTipoTrabaContra()    Returns the current record's "id_tipo_traba_contra" value
 * @method CONS_PG   setIdPg()                 Sets the current record's "id_pg" value
 * @method CONS_PG   setIdRp()                 Sets the current record's "id_rp" value
 * @method CONS_PG   setIdCdp()                Sets the current record's "id_cdp" value
 * @method CONS_PG   setValorCompromiso()      Sets the current record's "valor_compromiso" value
 * @method CONS_PG   setValorMensual()         Sets the current record's "valor_mensual" value
 * @method CONS_PG   setIdClaseAdmin()         Sets the current record's "id_clase_admin" value
 * @method CONS_PG   setNoActoAdmin()          Sets the current record's "no_acto_admin" value
 * @method CONS_PG   setFechaInicio()          Sets the current record's "fecha_inicio" value
 * @method CONS_PG   setFechaFin()             Sets the current record's "fecha_fin" value
 * @method CONS_PG   setMeses()                Sets the current record's "meses" value
 * @method CONS_PG   setDias()                 Sets the current record's "dias" value
 * @method CONS_PG   setIdCiudad()             Sets the current record's "id_ciudad" value
 * @method CONS_PG   setIdArea()               Sets the current record's "id_area" value
 * @method CONS_PG   setIdTercero()            Sets the current record's "id_tercero" value
 * @method CONS_PG   setIdMp()                 Sets the current record's "id_mp" value
 * @method CONS_PG   setIdTsBn()               Sets the current record's "id_ts_bn" value
 * @method CONS_PG   setIdTsCb()               Sets the current record's "id_ts_cb" value
 * @method CONS_PG   setIdVigencia()           Sets the current record's "id_vigencia" value
 * @method CONS_PG   setVigencia()             Sets the current record's "vigencia" value
 * @method CONS_PG   setIdTipoTrabaContra()    Sets the current record's "id_tipo_traba_contra" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCONS_PG extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CONS_PG');
        $this->hasColumn('id_pg', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_rp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cdp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_compromiso', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('valor_mensual', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('id_clase_admin', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_acto_admin', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_inicio', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('meses', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('dias', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ciudad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_area', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             '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_mp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_ts_bn', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_ts_cb', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             '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,
             ));
        $this->hasColumn('id_tipo_traba_contra', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}