It's not too hard to add it and mongodb does not work without this. I am sure more types can be added. But this is a rather good start.
Alternative the handler could be changed and implement the method pre_query.
There it would be possible to alter $this->value and set what's needed. Not sure which way is better.
This is the better way because it's faster to cast on store than on query.
Oh and don't forget that we have the metadata necessary at hand for the form and not quite so for the query. We could retrieve but why bother.
Added a few comments & committed the patch.
Automatically closed -- issue fixed for 2 weeks with no activity.
Comments
Comment #1
chx commentedComment #2
dawehnerAlternative the handler could be changed and implement the method pre_query.
There it would be possible to alter $this->value and set what's needed.
Not sure which way is better.
Comment #3
chx commentedThis is the better way because it's faster to cast on store than on query.
Comment #4
chx commentedOh and don't forget that we have the metadata necessary at hand for the form and not quite so for the query. We could retrieve but why bother.
Comment #5
bojanz commentedAdded a few comments & committed the patch.