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

/**
 * BaseRH_DH_FORMATO_DESEMPENO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_formato
 * @property integer $id_desempeno
 * @property integer $id_for_des
 * @property integer $id
 * @property RH_DH_FORMATO_ENCUESTA $RH_DH_FORMATO_ENCUESTA
 * @property RH_DH_VARIABLE_DESEMPENO $RH_DH_VARIABLE_DESEMPENO
 * 
 * @method integer                  getIdFormato()                Returns the current record's "id_formato" value
 * @method integer                  getIdDesempeno()              Returns the current record's "id_desempeno" value
 * @method integer                  getIdForDes()                 Returns the current record's "id_for_des" value
 * @method integer                  getId()                       Returns the current record's "id" value
 * @method RH_DH_FORMATO_ENCUESTA   getRHDHFORMATOENCUESTA()      Returns the current record's "RH_DH_FORMATO_ENCUESTA" value
 * @method RH_DH_VARIABLE_DESEMPENO getRHDHVARIABLEDESEMPENO()    Returns the current record's "RH_DH_VARIABLE_DESEMPENO" value
 * @method RH_DH_FORMATO_DESEMPENO  setIdFormato()                Sets the current record's "id_formato" value
 * @method RH_DH_FORMATO_DESEMPENO  setIdDesempeno()              Sets the current record's "id_desempeno" value
 * @method RH_DH_FORMATO_DESEMPENO  setIdForDes()                 Sets the current record's "id_for_des" value
 * @method RH_DH_FORMATO_DESEMPENO  setId()                       Sets the current record's "id" value
 * @method RH_DH_FORMATO_DESEMPENO  setRHDHFORMATOENCUESTA()      Sets the current record's "RH_DH_FORMATO_ENCUESTA" value
 * @method RH_DH_FORMATO_DESEMPENO  setRHDHVARIABLEDESEMPENO()    Sets the current record's "RH_DH_VARIABLE_DESEMPENO" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_DH_FORMATO_DESEMPENO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_DH_FORMATO_DESEMPENO');
        $this->hasColumn('id_formato', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_desempeno', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_for_des', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('RH_DH_VARIABLE_DESEMPENO', array(
             'local' => 'id_desempeno',
             'foreign' => 'id_variable_desempeno'));
    }
}