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

/**
 * BaseRH_DH_TOTALES_DIMENSION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tot_dim
 * @property integer $id_formato
 * @property string $num_doc
 * @property float $valor_total
 * @property integer $id_cia
 * @property integer $id_cen_op
 * @property RH_DH_FORMATO_ENCUESTA $RH_DH_FORMATO_ENCUESTA
 * 
 * @method integer                 getIdTotDim()               Returns the current record's "id_tot_dim" value
 * @method integer                 getIdFormato()              Returns the current record's "id_formato" value
 * @method string                  getNumDoc()                 Returns the current record's "num_doc" value
 * @method float                   getValorTotal()             Returns the current record's "valor_total" value
 * @method integer                 getIdCia()                  Returns the current record's "id_cia" value
 * @method integer                 getIdCenOp()                Returns the current record's "id_cen_op" value
 * @method RH_DH_FORMATO_ENCUESTA  getRHDHFORMATOENCUESTA()    Returns the current record's "RH_DH_FORMATO_ENCUESTA" value
 * @method RH_DH_TOTALES_DIMENSION setIdTotDim()               Sets the current record's "id_tot_dim" value
 * @method RH_DH_TOTALES_DIMENSION setIdFormato()              Sets the current record's "id_formato" value
 * @method RH_DH_TOTALES_DIMENSION setNumDoc()                 Sets the current record's "num_doc" value
 * @method RH_DH_TOTALES_DIMENSION setValorTotal()             Sets the current record's "valor_total" value
 * @method RH_DH_TOTALES_DIMENSION setIdCia()                  Sets the current record's "id_cia" value
 * @method RH_DH_TOTALES_DIMENSION setIdCenOp()                Sets the current record's "id_cen_op" value
 * @method RH_DH_TOTALES_DIMENSION setRHDHFORMATOENCUESTA()    Sets the current record's "RH_DH_FORMATO_ENCUESTA" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_DH_TOTALES_DIMENSION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_DH_TOTALES_DIMENSION');
        $this->hasColumn('id_tot_dim', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_formato', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_total', 'float', 22, array(
             'notnull' => true,
             'type' => 'float',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
        $this->hasColumn('id_cia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cen_op', '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'));
    }
}