I’ve got a form that uses a Select element with the empty_option set.
The form is bound to an object.
When the POST comes in with the empty option selected, that’s a value of “” (empty string) in HTML-land. Single-stepping through bind, populateValues, and friends, that value stays all the way through the process, and my object’s setProperty gets called with the empty string.
Is there a canonical way to convert that empty string to null so that by the time setProperty gets called, a null is passed in? Is that the hydrator’s job?