I\'ve got the following problem. I wrote (based on the tutorial) a form validation. The text fields work just fine but the integer field behave odd.
This is my validator
this is a old topic but i should mention that Filters
don't cause validation errors, they work in background and do their jobs silently .
for example Int
filter will remove any non-integer from the input , so when you do $form->getData()
the field with the Int
filter will only have integer values and 0 if its empty.