-
Hey,
The generated query looks like this
But both tables
The query generator ignores the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @frankhorv, welcome!! Can you try... let query = Query::select()
// Use `.table_ref()` here
.from(Table1.table_ref())
.left_join(
// And here
Table2.table_ref(),
Expr::tbl(Table1, Table1Column::ReferenceId)
.equals(Table2, Table2Column::Id),
)
.and_where(Expr::col(Table1Column::AnotherId).eq(another_id))
.to_owned(); The |
Beta Was this translation helpful? Give feedback.
-
Thank you for your help, that works for me! |
Beta Was this translation helpful? Give feedback.
-
No problem! |
Beta Was this translation helpful? Give feedback.
Hi @frankhorv, welcome!!
Can you try...
The
table_ref()
defined inEntityName
trait