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

Allow Non-Loaded Entities to Return Null Values for Relationships #178

Closed
wants to merge 1 commit into from
Closed

Allow Non-Loaded Entities to Return Null Values for Relationships #178

wants to merge 1 commit into from

Conversation

homestar9
Copy link
Contributor

This change should (hopefully) be pretty straightforward. In order to be able to retrieve null values back for relationships on a non-loaded (new) entity, all of the guardAgainstNotLoaded() checks were removed. I also applied the same fix to isNullValue() as you made in Quick version 5

The rest of the guardAgainstNotLoaded() checks are still in place so you shouldn't be able to create new relationships on a non-loaded entity.

@bdw429s
Copy link

bdw429s commented Apr 29, 2022

This pull request has been mentioned on Ortus Solutions Community. There might be relevant details there:

https://community.ortussolutions.com/t/quick-4-2-4-this-instance-is-not-loaded-so-it-cannot-access-the-relationship/9216/1

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

Successfully merging this pull request may close these issues.

2 participants