make children take DBName into consideration

This commit is contained in:
vabenil 2022-10-25 09:37:51 +03:00
parent 2a18bc805c
commit 598bb20ccd
1 changed files with 1 additions and 1 deletions

View File

@ -500,7 +500,7 @@ QueryBuilderHelper!(T[]) children(T, B)(B base) {
// return QueryBuilderHelper!(T[])(toTableName(T.stringof)).where!(mixin(keyName ~ " => base.id"));
// changing mixin cuz of regression in dmd 2.088
mixin("return QueryBuilderHelper!(T[])(toTableName(T.stringof)).where!("~keyName ~ " => base.id);");
mixin("return QueryBuilderHelper!(T[])(tableNameFor!T()).where!("~keyName ~ " => base.id);");
}
/++