-
Notifications
You must be signed in to change notification settings - Fork 49
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
Null nested models are instantiated (with null fields). #301
Comments
What's your Orma version? |
3.0.0-rc3 |
Seems bugs. Will investigate it. |
Thanks |
NOTE: This issue should be fixed in #263 but the PR didn't solve it. |
Released v3.0.0-rc4 with this bug fix. Can you try it please? |
Ok On Tue, Oct 11, 2016 at 4:40 PM, FUJI Goro [email protected] wrote:
|
Consider the following code, where Model2 is also a table:
When reading from database an instance of Model1 that has no model2, model1 still gets a model2 instance, with null values.
In Model1_Schema, I can see there are no condition for instantiating model2:
Model2_Schema.INSTANCE.newModelFromCursor() is called no matter what.
Am I missing something?
The text was updated successfully, but these errors were encountered: