ZF2-310: Validation group not set when values are bound

Issue Type: Bug Created: 2012-05-21T20:56:25.000+0000 Last Updated: 2012-05-29T19:32:57.000+0000 Status: Resolved Fix version(s): Reporter: Michael Gallego (bakura) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend\Form

  • form

Related issues: Attachments:


The validation group is not set to the input filter when the Form tries to bind data in the function BaseForm::bindValues().

EDIT : in fact, I think it's not a bug. What I was doing was creating a new input filter in my getInputFilter of my models :

public function getInputFilter() { $inputFilter = new InputFilter(); // Init filter...

return $inputFilter;


Whereas I should cache it. However I had a hard time finding that I was wrong, so the doc has to be clear that you have to cache it, otherwise maybe the Form could cache it whenever setInputFilter is called.


Posted by Matthew Weier O'Phinney (matthew) on 2012-05-29T19:32:44.000+0000

If you feel the docs should be updated, please either open a new issue indicating the documentation page to alter, as well as suggested verbiage, or provide a pull request via github.


Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.