Fix a bug of models (#239)
This commit is contained in:
parent
6ef7cffabb
commit
aaaba8aa97
|
@ -52,7 +52,12 @@ const bool [[className]]::hasPrimaryKey = true;
|
|||
<%c++ }else{%>
|
||||
const bool [[className]]::hasPrimaryKey = false;
|
||||
<%c++}%>
|
||||
const std::string [[className]]::tableName = "[[tableName]]";
|
||||
const std::string [[className]]::tableName = "<%c++
|
||||
if(!schema.empty())
|
||||
{
|
||||
$$<<schema<<".";
|
||||
}
|
||||
%>[[tableName]]";
|
||||
|
||||
const std::vector<typename [[className]]::MetaData> [[className]]::_metaData={
|
||||
<%c++for(size_t i=0;i<cols.size();i++){
|
||||
|
|
|
@ -94,7 +94,7 @@ class HttpAppFrameworkImpl : public HttpAppFramework
|
|||
virtual HttpAppFramework ®isterBeginningAdvice(
|
||||
const std::function<void()> &advice) override
|
||||
{
|
||||
getLoop()->runInLoop(advice);
|
||||
getLoop()->queueInLoop(advice);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue