Fixed missing return in Service::loadById.

print
Josef Rokos 9 years ago
parent 36f9c93e08
commit b1e1388135

@ -45,8 +45,9 @@ public:
QSharedPointer<T> loadById(int id) { QSharedPointer<T> loadById(int id) {
odb::database *db = Context::instance().db(); odb::database *db = Context::instance().db();
odb::transaction tx(db->begin()); odb::transaction tx(db->begin());
db->template load<T>(id); QSharedPointer<T> entity = db->template load<T>(id);
tx.commit(); tx.commit();
return entity;
} }
}; };

Loading…
Cancel
Save