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

populateRelation for Many-to-Many #1059

Open
dlgoodchild opened this issue Apr 2, 2018 · 0 comments
Open

populateRelation for Many-to-Many #1059

dlgoodchild opened this issue Apr 2, 2018 · 0 comments

Comments

@dlgoodchild
Copy link

I'm running the latest v2-dev release and am using isCrossRef for a junction table.

Imagine I have just loaded 20 records, and for each record I want the associated records via the cross-reference, is there a way to have that entire relation populated in a single DB hit as opposed to 20 separate hits?

I've read the documentation and read the generated code changed for when isCrossRef is enabled but I'm not seeing any ability to do this. If this doesn't exist, do you have an efficient suggestion of loading the many-to-many records.

Cheers,
D.

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

1 participant