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

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