/**
  * 
  * @param GrupoPrecioOfertaData $GrupoPrecioOfertaData
  * @return \Dispo\Data\GrupoPrecioOfertaData|NULL
  */
 public function consultar(GrupoPrecioOfertaData $GrupoPrecioOfertaData)
 {
     $GrupoPrecioOfertaData2 = new GrupoPrecioOfertaData();
     $sql = ' SELECT grupo_precio_oferta.* ' . ' FROM grupo_precio_oferta ' . ' WHERE grupo_precio_cab_id = :grupo_precio_cab_id ' . '   and producto_id			= :producto_id' . '   and variedad_id			= :variedad_id' . '   and grado_id			= :grado_id' . '   and producto_combo_id	= :producto_combo_id' . '   and variedad_combo_id	= :variedad_combo_id' . '   and grado_combo_id		= :grado_combo_id';
     $stmt = $this->getEntityManager()->getConnection()->prepare($sql);
     $stmt->bindValue(':grupo_precio_cab_id', $GrupoPrecioOfertaData->getGrupoPrecioCabId());
     $stmt->bindValue(':producto_id', $GrupoPrecioOfertaData->getProductoId());
     $stmt->bindValue(':variedad_id', $GrupoPrecioOfertaData->getVariedadId());
     $stmt->bindValue(':grado_id', $GrupoPrecioOfertaData->getGradoId());
     $stmt->bindValue(':producto_combo_id', $GrupoPrecioOfertaData->getProductoComboId());
     $stmt->bindValue(':variedad_combo_id', $GrupoPrecioOfertaData->getVariedadComboId());
     $stmt->bindValue(':grado_combo_id', $GrupoPrecioOfertaData->getGradoComboId());
     $stmt->execute();
     $row = $stmt->fetch();
     //Se utiliza el fecth por que es un registro
     if ($row) {
         $GrupoPrecioOfertaData2->setGrupoPrecioCabId($row['grupo_precio_cab_id']);
         $GrupoPrecioOfertaData2->setProductoId($row['producto_id']);
         $GrupoPrecioOfertaData2->setVariedadId($row['variedad_id']);
         $GrupoPrecioOfertaData2->setGradoId($row['grado_id']);
         $GrupoPrecioOfertaData2->setProductoComboId($row['producto_combo_id']);
         $GrupoPrecioOfertaData2->setVariedadComboId($row['variedad_combo_id']);
         $GrupoPrecioOfertaData2->setGradoComboId($row['grado_combo_id']);
         $GrupoPrecioOfertaData2->setFactorCombo($row['factor_combo']);
         $GrupoPrecioOfertaData2->setFecIngreso($row['fec_ingreso']);
         $GrupoPrecioOfertaData2->setFecModifica($row['fec_modifica']);
         $GrupoPrecioOfertaData2->setUsuarioIngId($row['usuario_ing_id']);
         $GrupoPrecioOfertaData2->setUsuarioModId($row['usuario_mod_id']);
         return $GrupoPrecioOfertaData2;
     } else {
         return null;
     }
     //end if
 }