diff --git a/angel_orm/lib/src/join_builder.dart b/angel_orm/lib/src/join_builder.dart index abdaa810..5636dabb 100644 --- a/angel_orm/lib/src/join_builder.dart +++ b/angel_orm/lib/src/join_builder.dart @@ -54,7 +54,7 @@ class JoinBuilder { break; } - b.write(' $to'); + b.write(' ${to()}'); if (alias != null) b.write(' $alias'); b.write(' ON $left$op$right'); return b.toString();