You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a criteria map : ["arTran.member.division.id:40]
We want to apply same criteria to ArAdjustJournal and ArTranJournal
we can do query ArTranJournal.query(["arTran.member.division.id:40]) fine, because ArTranJournal.arTran association exists
However, for ArAdjustJournal the association path is AradjustJournal.arAdjust.arTran" and hence AradjustJournal.query(["arTran.member.division.id:40])` wont work.
What we should be able to do is.
AradjustJournal.query().createAlias('arAdjust.arTran', 'arTran') and thn we should be able to build criteria ["arTran.member.division.id:40] on it.
What do we want to achieve
Given a criteria map :
["arTran.member.division.id:40]
We want to apply same criteria to
ArAdjustJournal
andArTranJournal
we can do query
ArTranJournal.query(["arTran.member.division.id:40])
fine, becauseArTranJournal.arTran
association existsHowever, for
ArAdjustJournal
the association path isAradjustJournal.arAdjust.arTran" and hence
AradjustJournal.query(["arTran.member.division.id:40])` wont work.What we should be able to do is.
AradjustJournal.query().createAlias('arAdjust.arTran', 'arTran')
and thn we should be able to build criteria["arTran.member.division.id:40]
on it.We have a workaround and XXX for this here
The text was updated successfully, but these errors were encountered: