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

/**
 * BasePR_RP_COMIS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_tercero
 * @property integer $id_clase_admin
 * @property integer $no_acto_admin
 * @property integer $id_pago
 * @property string $objeto
 * @property string $observaciones
 * @property string $destinos
 * @property string $actividades
 * @property integer $id_cdp
 * @property integer $id_comision
 * @property timestamp $fecha
 * @property timestamp $fecha_proceso
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property integer $estado
 * @property integer $id_mae_ter
 * @property string $destinos_add
 * @property string $usuariolog
 * @property PR_CLASE_ACT_ADMIN $PR_CLASE_ACT_ADMIN
 * @property VIGENCIA $VIGENCIA
 * @property Doctrine_Collection $PR_RADICADO_COMIS
 * @property Doctrine_Collection $PR_RADICADO_COMIS_2
 * @property Doctrine_Collection $PR_RADICADO_COMIS_3
 * @property Doctrine_Collection $PR_RADICADO_COMIS_4
 * @property Doctrine_Collection $PR_RADICADO_COMIS_5
 * @property Doctrine_Collection $PR_RADICADO_COMIS_6
 * @property Doctrine_Collection $PR_RADICADO_COMIS_7
 * @property Doctrine_Collection $PR_RADICADO_COMIS_8
 * @property Doctrine_Collection $PR_RADICADO_COMIS_9
 * 
 * @method integer             getId()                  Returns the current record's "id" value
 * @method integer             getIdTercero()           Returns the current record's "id_tercero" 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 integer             getIdPago()              Returns the current record's "id_pago" value
 * @method string              getObjeto()              Returns the current record's "objeto" value
 * @method string              getObservaciones()       Returns the current record's "observaciones" value
 * @method string              getDestinos()            Returns the current record's "destinos" value
 * @method string              getActividades()         Returns the current record's "actividades" value
 * @method integer             getIdCdp()               Returns the current record's "id_cdp" value
 * @method integer             getIdComision()          Returns the current record's "id_comision" value
 * @method timestamp           getFecha()               Returns the current record's "fecha" value
 * @method timestamp           getFechaProceso()        Returns the current record's "fecha_proceso" value
 * @method integer             getIdVigencia()          Returns the current record's "id_vigencia" value
 * @method string              getVigencia()            Returns the current record's "vigencia" value
 * @method integer             getEstado()              Returns the current record's "estado" value
 * @method integer             getIdMaeTer()            Returns the current record's "id_mae_ter" value
 * @method string              getDestinosAdd()         Returns the current record's "destinos_add" value
 * @method string              getUsuariolog()          Returns the current record's "usuariolog" value
 * @method PR_CLASE_ACT_ADMIN  getPRCLASEACTADMIN()     Returns the current record's "PR_CLASE_ACT_ADMIN" value
 * @method VIGENCIA            getVIGENCIA()            Returns the current record's "VIGENCIA" value
 * @method Doctrine_Collection getPRRADICADOCOMIS()     Returns the current record's "PR_RADICADO_COMIS" collection
 * @method Doctrine_Collection getPRRADICADOCOMIS2()    Returns the current record's "PR_RADICADO_COMIS_2" collection
 * @method Doctrine_Collection getPRRADICADOCOMIS3()    Returns the current record's "PR_RADICADO_COMIS_3" collection
 * @method Doctrine_Collection getPRRADICADOCOMIS4()    Returns the current record's "PR_RADICADO_COMIS_4" collection
 * @method Doctrine_Collection getPRRADICADOCOMIS5()    Returns the current record's "PR_RADICADO_COMIS_5" collection
 * @method Doctrine_Collection getPRRADICADOCOMIS6()    Returns the current record's "PR_RADICADO_COMIS_6" collection
 * @method Doctrine_Collection getPRRADICADOCOMIS7()    Returns the current record's "PR_RADICADO_COMIS_7" collection
 * @method Doctrine_Collection getPRRADICADOCOMIS8()    Returns the current record's "PR_RADICADO_COMIS_8" collection
 * @method Doctrine_Collection getPRRADICADOCOMIS9()    Returns the current record's "PR_RADICADO_COMIS_9" collection
 * @method PR_RP_COMIS         setId()                  Sets the current record's "id" value
 * @method PR_RP_COMIS         setIdTercero()           Sets the current record's "id_tercero" value
 * @method PR_RP_COMIS         setIdClaseAdmin()        Sets the current record's "id_clase_admin" value
 * @method PR_RP_COMIS         setNoActoAdmin()         Sets the current record's "no_acto_admin" value
 * @method PR_RP_COMIS         setIdPago()              Sets the current record's "id_pago" value
 * @method PR_RP_COMIS         setObjeto()              Sets the current record's "objeto" value
 * @method PR_RP_COMIS         setObservaciones()       Sets the current record's "observaciones" value
 * @method PR_RP_COMIS         setDestinos()            Sets the current record's "destinos" value
 * @method PR_RP_COMIS         setActividades()         Sets the current record's "actividades" value
 * @method PR_RP_COMIS         setIdCdp()               Sets the current record's "id_cdp" value
 * @method PR_RP_COMIS         setIdComision()          Sets the current record's "id_comision" value
 * @method PR_RP_COMIS         setFecha()               Sets the current record's "fecha" value
 * @method PR_RP_COMIS         setFechaProceso()        Sets the current record's "fecha_proceso" value
 * @method PR_RP_COMIS         setIdVigencia()          Sets the current record's "id_vigencia" value
 * @method PR_RP_COMIS         setVigencia()            Sets the current record's "vigencia" value
 * @method PR_RP_COMIS         setEstado()              Sets the current record's "estado" value
 * @method PR_RP_COMIS         setIdMaeTer()            Sets the current record's "id_mae_ter" value
 * @method PR_RP_COMIS         setDestinosAdd()         Sets the current record's "destinos_add" value
 * @method PR_RP_COMIS         setUsuariolog()          Sets the current record's "usuariolog" value
 * @method PR_RP_COMIS         setPRCLASEACTADMIN()     Sets the current record's "PR_CLASE_ACT_ADMIN" value
 * @method PR_RP_COMIS         setVIGENCIA()            Sets the current record's "VIGENCIA" value
 * @method PR_RP_COMIS         setPRRADICADOCOMIS()     Sets the current record's "PR_RADICADO_COMIS" collection
 * @method PR_RP_COMIS         setPRRADICADOCOMIS2()    Sets the current record's "PR_RADICADO_COMIS_2" collection
 * @method PR_RP_COMIS         setPRRADICADOCOMIS3()    Sets the current record's "PR_RADICADO_COMIS_3" collection
 * @method PR_RP_COMIS         setPRRADICADOCOMIS4()    Sets the current record's "PR_RADICADO_COMIS_4" collection
 * @method PR_RP_COMIS         setPRRADICADOCOMIS5()    Sets the current record's "PR_RADICADO_COMIS_5" collection
 * @method PR_RP_COMIS         setPRRADICADOCOMIS6()    Sets the current record's "PR_RADICADO_COMIS_6" collection
 * @method PR_RP_COMIS         setPRRADICADOCOMIS7()    Sets the current record's "PR_RADICADO_COMIS_7" collection
 * @method PR_RP_COMIS         setPRRADICADOCOMIS8()    Sets the current record's "PR_RADICADO_COMIS_8" collection
 * @method PR_RP_COMIS         setPRRADICADOCOMIS9()    Sets the current record's "PR_RADICADO_COMIS_9" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_RP_COMIS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_RP_COMIS');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tercero', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $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('id_pago', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('objeto', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('observaciones', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('destinos', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('actividades', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('id_cdp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_comision', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('estado', '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('destinos_add', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('usuariolog', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('VIGENCIA', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasMany('PR_RADICADO_COMIS', array(
             'local' => 'id',
             'foreign' => 'id_rp_comis'));

        $this->hasMany('PR_RADICADO_COMIS as PR_RADICADO_COMIS_2', array(
             'local' => 'id',
             'foreign' => 'vigencia'));

        $this->hasMany('PR_RADICADO_COMIS as PR_RADICADO_COMIS_3', array(
             'local' => 'id',
             'foreign' => 'id_vigencia'));

        $this->hasMany('PR_RADICADO_COMIS as PR_RADICADO_COMIS_4', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_rp_comis'));

        $this->hasMany('PR_RADICADO_COMIS as PR_RADICADO_COMIS_5', array(
             'local' => 'id_vigencia',
             'foreign' => 'vigencia'));

        $this->hasMany('PR_RADICADO_COMIS as PR_RADICADO_COMIS_6', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasMany('PR_RADICADO_COMIS as PR_RADICADO_COMIS_7', array(
             'local' => 'vigencia',
             'foreign' => 'id_rp_comis'));

        $this->hasMany('PR_RADICADO_COMIS as PR_RADICADO_COMIS_8', array(
             'local' => 'vigencia',
             'foreign' => 'vigencia'));

        $this->hasMany('PR_RADICADO_COMIS as PR_RADICADO_COMIS_9', array(
             'local' => 'vigencia',
             'foreign' => 'id_vigencia'));
    }
}