Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add more restrictions on an alias #702

Open
snimavat opened this issue Jul 14, 2023 · 0 comments
Open

Ability to add more restrictions on an alias #702

snimavat opened this issue Jul 14, 2023 · 0 comments
Assignees

Comments

@snimavat
Copy link
Contributor

What do we want to achieve

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.

We have a workaround and XXX for this here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants