ZF2-417: Zend\Form\Annotation\Hydrator doesn't allow to set underscoreSeparatedKeys
Description
the Hydrator ClassMethods has a property only accesible though __construct underscoreSeparatedKeys, but there is no way to define this value though Form notation, or change it later on in the controller though any setter due the HydratorInterface doesn't has it defined.
Suggestion1: Change the Hydrator notation from AbstractStringAnnotation to AbstractArrayAnnotation and be something like this: @Zend\Form\Annotation\Hydrator({"class":"Zend\Stdlib\Hydrator\ClassMethods", "underscoreSeparatedKeys":false}) The rest of the Hydrators can happily ignore such additional params, and in ClassMethods if not defined can use default just as is right now.
Actually I ugly patched putting default to false instead of true to make this work with my Anotation definitions.
Comments
Posted by Chris Martin (cgmartin) on 2012-09-18T04:27:25.000+0000
PR added: https://github.com/zendframework/zf2/pull/2378
Posted by Ralph Schindler (ralph) on 2012-10-08T20:15:06.000+0000
This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2507