mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
FIX: @Formula on @ManyToOne produces SQLException ... fix appends missing FROM clause for formula joins #1299
This commit is contained in:
committed by
Rob Bygrave
parent
11e180aa3f
commit
021d57f4b2
@@ -126,6 +126,10 @@ class SqlTreeNodeExtraJoin implements SqlTreeNode {
|
||||
joinType = SqlJoinType.OUTER;
|
||||
}
|
||||
if (!manyToMany) {
|
||||
if (assocBeanProperty.isFormula()) {
|
||||
// add joins for formula beans
|
||||
assocBeanProperty.appendFrom(ctx, joinType);
|
||||
}
|
||||
joinType = assocBeanProperty.addJoin(joinType, prefix, ctx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user