public function getcombovariedadnoexisteAction() { try { $EntityManagerPlugin = $this->EntityManagerPlugin(); $DispoBO = new DispoBO(); $CalidadBO = new CalidadBO(); $DispoBO->setEntityManager($EntityManagerPlugin->getEntityManager()); $SesionUsuarioPlugin = $this->SesionUsuarioPlugin(); $SesionUsuarioPlugin->isLoginClienteVendedor(); $body = $this->getRequest()->getContent(); $json = json_decode($body, true); //var_dump($json); exit; $texto_primer_elemento = $json['texto_primer_elemento']; $inventario_id = $json['inventario_id']; $calidad_id = $json['calidad_id']; $variedad_id = $json['variedad_id']; $variedad_opciones = $DispoBO->getComboVariedadNoExiste($inventario_id, $calidad_id, $variedad_id, $texto_primer_elemento); $response = new \stdClass(); $response->variedad_opciones = $variedad_opciones; $response->respuesta_code = 'OK'; $json = new JsonModel(get_object_vars($response)); return $json; } catch (\Exception $e) { $excepcion_msg = utf8_encode($this->ExcepcionPlugin()->getMessageFormat($e)); $response = $this->getResponse(); $response->setStatusCode(500); $response->setContent($excepcion_msg); return $response; } }