diff --git a/database_generation.d b/database_generation.d index 50ed1ba..b6f92f0 100644 --- a/database_generation.d +++ b/database_generation.d @@ -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);"); } /++