I have some records stored through Parse PHP SDK. Among the fields there is a Date field which is initialized with an undefined value.
On the go this value may change either to a real date or a null value, in case I set a date and then want to "unset" it. What I am doing is setting it as null.
The problem is that when I want to filter the set dates and all the others (in my case both undefined and null values should be the same, i.e. "unset") I try a query filter similar to the following:
$query->equalTo("mydatefield", NULL);
The weird thing about it is that it only returns the undefined values, not the NULL ones.
On the other hand when I use
$query->notEqualTo("mydatefield", NULL);
the desired records are all returned just fine.
Any idea how to accomplish getting both null and undefined values?
Thanks in advance.