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

/**
 * BaseRH_DH_VARIABLE_DESEMPENO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_variable_desempeno
 * @property string $nombre
 * @property integer $numero_criterios
 * @property integer $codigo_formato
 * @property Doctrine_Collection $RH_DH_CRITERIO_DESEMPENO
 * @property Doctrine_Collection $RH_DH_MEDI_CRITERIO_DESEMPENO
 * 
 * @method integer                  getIdVariableDesempeno()           Returns the current record's "id_variable_desempeno" value
 * @method string                   getNombre()                        Returns the current record's "nombre" value
 * @method integer                  getNumeroCriterios()               Returns the current record's "numero_criterios" value
 * @method integer                  getCodigoFormato()                 Returns the current record's "codigo_formato" value
 * @method Doctrine_Collection      getRHDHCRITERIODESEMPENO()         Returns the current record's "RH_DH_CRITERIO_DESEMPENO" collection
 * @method Doctrine_Collection      getRHDHMEDICRITERIODESEMPENO()     Returns the current record's "RH_DH_MEDI_CRITERIO_DESEMPENO" collection
 * @method RH_DH_VARIABLE_DESEMPENO setIdVariableDesempeno()           Sets the current record's "id_variable_desempeno" value
 * @method RH_DH_VARIABLE_DESEMPENO setNombre()                        Sets the current record's "nombre" value
 * @method RH_DH_VARIABLE_DESEMPENO setNumeroCriterios()               Sets the current record's "numero_criterios" value
 * @method RH_DH_VARIABLE_DESEMPENO setCodigoFormato()                 Sets the current record's "codigo_formato" value
 * @method RH_DH_VARIABLE_DESEMPENO setRHDHCRITERIODESEMPENO()         Sets the current record's "RH_DH_CRITERIO_DESEMPENO" collection
 * @method RH_DH_VARIABLE_DESEMPENO setRHDHMEDICRITERIODESEMPENO()     Sets the current record's "RH_DH_MEDI_CRITERIO_DESEMPENO" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_DH_VARIABLE_DESEMPENO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_DH_VARIABLE_DESEMPENO');
        $this->hasColumn('id_variable_desempeno', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('numero_criterios', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('codigo_formato', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('RH_DH_CRITERIO_DESEMPENO', array(
             'local' => 'id_variable_desempeno',
             'foreign' => 'id_variable_desempeno'));

        $this->hasMany('RH_DH_MEDI_CRITERIO_DESEMPENO', array(
             'local' => 'id_variable_desempeno',
             'foreign' => 'id_variable_desempeno'));
    }
}