-
Notifications
You must be signed in to change notification settings - Fork 72
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
Query().WithAll() #232
Comments
Relations being deleted when set to As a workaraound, I just feed You might want to edit the title to reflect the actual bug. Last but not least, as setting the relation to |
Querying all relationships at once is probably a bad idea on most cases, so it makes no sense to me to expose this functionality that easy. Users willing to do this can easily chain all |
It's definitely more about the saving part that must not set the not queried relations to nil. |
When loading one entity and changing some value, the
store.Update()
method will delete all relations that are not loaded. Therefore one has to explicitly call allWith**()
methods.If there isn't some other way to load an entity with all relations, or to save an entity without setting all relation to
null
I would suggest some methodNew**Query().WithAll()
to load all related entities as well.The text was updated successfully, but these errors were encountered: