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

/**
 * BaseRH_DH_FORMATO_DIMENSION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_formato
 * @property integer $id_dimension
 * @property integer $id_for_dim
 * @property integer $id
 * @property float $valor_porcentaje
 * @property RH_DH_VARIABLE_DIMENSION $RH_DH_VARIABLE_DIMENSION
 * @property RH_DH_FORMATO_ENCUESTA $RH_DH_FORMATO_ENCUESTA
 * 
 * @method integer                  getIdFormato()                Returns the current record's "id_formato" value
 * @method integer                  getIdDimension()              Returns the current record's "id_dimension" value
 * @method integer                  getIdForDim()                 Returns the current record's "id_for_dim" value
 * @method integer                  getId()                       Returns the current record's "id" value
 * @method float                    getValorPorcentaje()          Returns the current record's "valor_porcentaje" value
 * @method RH_DH_VARIABLE_DIMENSION getRHDHVARIABLEDIMENSION()    Returns the current record's "RH_DH_VARIABLE_DIMENSION" value
 * @method RH_DH_FORMATO_ENCUESTA   getRHDHFORMATOENCUESTA()      Returns the current record's "RH_DH_FORMATO_ENCUESTA" value
 * @method RH_DH_FORMATO_DIMENSION  setIdFormato()                Sets the current record's "id_formato" value
 * @method RH_DH_FORMATO_DIMENSION  setIdDimension()              Sets the current record's "id_dimension" value
 * @method RH_DH_FORMATO_DIMENSION  setIdForDim()                 Sets the current record's "id_for_dim" value
 * @method RH_DH_FORMATO_DIMENSION  setId()                       Sets the current record's "id" value
 * @method RH_DH_FORMATO_DIMENSION  setValorPorcentaje()          Sets the current record's "valor_porcentaje" value
 * @method RH_DH_FORMATO_DIMENSION  setRHDHVARIABLEDIMENSION()    Sets the current record's "RH_DH_VARIABLE_DIMENSION" value
 * @method RH_DH_FORMATO_DIMENSION  setRHDHFORMATOENCUESTA()      Sets the current record's "RH_DH_FORMATO_ENCUESTA" 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_DIMENSION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_DH_FORMATO_DIMENSION');
        $this->hasColumn('id_formato', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_dimension', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_for_dim', '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,
             ));
        $this->hasColumn('valor_porcentaje', 'float', 22, array(
             'notnull' => false,
             'type' => 'float',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
    }

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

        $this->hasOne('RH_DH_FORMATO_ENCUESTA', array(
             'local' => 'id_formato',
             'foreign' => 'id_formato'));
    }
}