zendframework/zf2 — pull request #1749 by bakura10 (2012-07-04 19:40:09+00:00)
Title: Validation group support for Fieldset and Collection

This is the last PR for Form for beta 5.

Basically, it extends validation groups for Collection and Fieldsets (it also works when elements in collection are added on the fly).

The usage is quite simple. In the form, just do :

$this->setValidationGroup('username', 'profile' => array('facebook'));

This will only validate username, and the 'facebook' input in the profile nested fieldset.