[FLOW3-general] General Converter Behaviour

Carsten Bleicker carsten at bleicker.de
Mon May 21 09:50:28 CEST 2012


Hi folks,
i want to discuss the general behaviour of converters.
some converters returning validation errors, but all converting anytime without returning null.
but in my opinion the behaviour should allways be the same.
first of all i would never expect validation errors in a converter. in would expect this only in validators.
the second idea is, to allow converters to return NULL if the property is notated with @ORM\Column(nullable=true)
if converters does not return null it is not possible to realize a simple start / stop date properties.
also no exceptions should be thrown if converter is able to return NULL.

kind regards
carsten




More information about the FLOW3-general mailing list