update to the new morm::Finder interface

This commit is contained in:
Tomasz Sowa 2022-07-11 17:51:50 +02:00
parent 8da76134ce
commit 8d6d0ddbf8
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ CalcItemsHelper Item::calc_items_by_url(long parent_id, const std::wstring & url
morm::Finder<CalcItemsHelper> finder(model_connector);
CalcItemsHelper helper = finder.
prepare_to_select().
select(morm::Select::no_auto_generated_columns).
raw("select count(id) as size, min(id) as item_id from core.item").
where().
eq(L"parent_id", parent_id).