From 0e3ee5fad0773464df97c2917a65e301881324d8 Mon Sep 17 00:00:00 2001 From: davidschedler Date: Wed, 16 Feb 2022 04:10:13 +0100 Subject: [PATCH] Fix missing "using namespace drogon::orm;" at autogenerated restful controller (#1178) --- drogon_ctl/templates/restful_controller_base_h.csp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drogon_ctl/templates/restful_controller_base_h.csp b/drogon_ctl/templates/restful_controller_base_h.csp index db67c853..10281304 100644 --- a/drogon_ctl/templates/restful_controller_base_h.csp +++ b/drogon_ctl/templates/restful_controller_base_h.csp @@ -19,6 +19,7 @@ auto modelName = tableInfo.get("className"); $$<<"#include \""<("hasPrimaryKey")==1); $$<<"using namespace drogon;\n"; +$$<<"using namespace drogon::orm;\n"; $$<<"using namespace drogon_model::"<("dbName"); auto &schema=tableInfo.get("schema"); @@ -83,4 +84,4 @@ class [[className]]Base : public RestfulController { $$<<"}\n"; } -%> \ No newline at end of file +%>