Default form elements filters overriden #282

Closed
mpalourdio opened this Issue Oct 23, 2013 · 1 comment

Projects

None yet

1 participant

@mpalourdio
Contributor

For a date field for example, when the 'filter' annotation isn't provided, a custom filter is given to the element, overriding the element's default one from the \Zend\Form\Element, what is unexpected imo.

https://github.com/doctrine/DoctrineORMModule/blob/master/src/DoctrineORMModule/Form/Annotation/ElementAnnotationsListener.php#L163

if we delete 'case:date' in the switch, it still doesn't work because of
https://github.com/doctrine/DoctrineORMModule/blob/master/src/DoctrineORMModule/Form/Annotation/AnnotationBuilder.php#L87 that set an empty arrayobject(), what causes the createForm method() to override the Element default filter by no more filter at all.

@mpalourdio
Contributor

Just wanted to point that from zf2.2.5/2.3, the date filters are in sync zendframework/zendframework#5343 , but maybe still no need to override them.

@mpalourdio mpalourdio closed this Feb 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment