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

Always provide access to child data at the RelatedResourceEntity level #627

Open
andrus opened this issue Apr 9, 2023 · 0 comments
Open

Comments

@andrus
Copy link
Contributor

andrus commented Apr 9, 2023

When processing a select, depending on a resolver, child objects may or may not be stored in ResourceEntity. The default Cayenne strategy ("relatedViaQueryWithParentExp") actually stores them, while a few others like "relatedViaParentPrefetch" do not. This causes issues like #626.

We must change the resolver lifecycle, to unconditionally store children in their respective ResourceEntities, regardless of the how they were resolved. This will make the rest of the pipeline more sane, as well as simplify RelatedDataResolver itself.

@andrus andrus changed the title Always install related objects in ResourceEntity Always store child result objects in ResourceEntity Apr 9, 2023
@andrus andrus changed the title Always store child result objects in ResourceEntity Always provide access to child data at the RelatedResourceEntity level Apr 9, 2023
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