Open lukewertz opened 9 years ago
I agree with that. It seems that NULL
values are an edge case that is not very well handled.
Actually, I think this bug report might be a duplicate of https://github.com/RESTful-Drupal/restful/issues/492
If I'm able to this week, I'll try pulling and testing it... and perhaps adding a test for it as well.
Yeah, we should probably check not only isset, but also array_key_exists - to better distinguish null from non existing
When an entityreference field has a cardinality of 1 and is referencing a node that is unpublished, the result from RESTful is that the entity simply disappears from the return. I would expect to get back a null value, not that the property would disappear.