diff --git a/src/cpp/model/table/ModelBase.h b/src/cpp/model/table/ModelBase.h index ba4d2bff0..917e8dd62 100644 --- a/src/cpp/model/table/ModelBase.h +++ b/src/cpp/model/table/ModelBase.h @@ -38,7 +38,7 @@ namespace model { template size_t loadFromDB(const std::string& fieldName, const T& fieldValue); template - bool isExistInDB(const std::string& fieldName, const T& fieldValue) const; + bool isExistInDB(const std::string& fieldName, const T& fieldValue); template std::vector loadFromDB(const std::string& fieldName, const WhereFieldType& fieldValue, int expectedResults = 0); template @@ -93,7 +93,7 @@ namespace model { } template - bool ModelBase::isExistInDB(const std::string& fieldName, const T& fieldValue) const + bool ModelBase::isExistInDB(const std::string& fieldName, const T& fieldValue) { auto cm = ConnectionManager::getInstance(); Poco::Data::Statement select(cm->getConnection(CONNECTION_MYSQL_LOGIN_SERVER));