-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Check if property is set #3445
Check if property is set #3445
Conversation
```getValue``` didn't check if the property on an object exists so wouldn't return the default value.
Merged. Thank you. |
okay, but if we want the null value instead of the default value? This behavior is now different from array. |
@cebe we have 3 variants:
|
IMO, 1 is out of question. 2 and 3 both have points, but I prefer 3 for the following reasons:
|
I'd vote for reverting the change too. |
Reverted 44273f0 |
That' a shame, It was useful for relations. Maybe a note should be added to the docs to say if it's an object |
Check if property is set
getValue
didn't check if the property on an object exists so wouldn't return the default value.