Fixed missing return in Service::loadById.

This commit is contained in:
2015-11-10 14:59:00 +01:00
parent 36f9c93e08
commit b1e1388135
+2 -1
View File
@@ -45,8 +45,9 @@ public:
QSharedPointer<T> loadById(int id) {
odb::database *db = Context::instance().db();
odb::transaction tx(db->begin());
db->template load<T>(id);
QSharedPointer<T> entity = db->template load<T>(id);
tx.commit();
return entity;
}
};