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

/**
 * BasePR_RESOL_COMIS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_cdp
 * @property integer $tipo_comisionado
 * @property string $resolucion
 * @property timestamp $fecha_funcionario
 * @property timestamp $fecha_comisionado
 * @property integer $firma
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property integer $id_comision
 * @property FIRMA_RP $FIRMA_RP
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer        getId()                Returns the current record's "id" value
 * @method integer        getIdCdp()             Returns the current record's "id_cdp" value
 * @method integer        getTipoComisionado()   Returns the current record's "tipo_comisionado" value
 * @method string         getResolucion()        Returns the current record's "resolucion" value
 * @method timestamp      getFechaFuncionario()  Returns the current record's "fecha_funcionario" value
 * @method timestamp      getFechaComisionado()  Returns the current record's "fecha_comisionado" value
 * @method integer        getFirma()             Returns the current record's "firma" value
 * @method integer        getIdVigencia()        Returns the current record's "id_vigencia" value
 * @method string         getVigencia()          Returns the current record's "vigencia" value
 * @method integer        getIdComision()        Returns the current record's "id_comision" value
 * @method FIRMA_RP       getFIRMARP()           Returns the current record's "FIRMA_RP" value
 * @method VIGENCIA       getVIGENCIA()          Returns the current record's "VIGENCIA" value
 * @method PR_RESOL_COMIS setId()                Sets the current record's "id" value
 * @method PR_RESOL_COMIS setIdCdp()             Sets the current record's "id_cdp" value
 * @method PR_RESOL_COMIS setTipoComisionado()   Sets the current record's "tipo_comisionado" value
 * @method PR_RESOL_COMIS setResolucion()        Sets the current record's "resolucion" value
 * @method PR_RESOL_COMIS setFechaFuncionario()  Sets the current record's "fecha_funcionario" value
 * @method PR_RESOL_COMIS setFechaComisionado()  Sets the current record's "fecha_comisionado" value
 * @method PR_RESOL_COMIS setFirma()             Sets the current record's "firma" value
 * @method PR_RESOL_COMIS setIdVigencia()        Sets the current record's "id_vigencia" value
 * @method PR_RESOL_COMIS setVigencia()          Sets the current record's "vigencia" value
 * @method PR_RESOL_COMIS setIdComision()        Sets the current record's "id_comision" value
 * @method PR_RESOL_COMIS setFIRMARP()           Sets the current record's "FIRMA_RP" value
 * @method PR_RESOL_COMIS setVIGENCIA()          Sets the current record's "VIGENCIA" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_RESOL_COMIS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_RESOL_COMIS');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_cdp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tipo_comisionado', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('resolucion', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_funcionario', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_comisionado', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('firma', '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_comision', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

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