symfony/symfony — pull request #10327 by stloyd (2014-02-25 13:09:15+00:00)
Title: [Form] Add shortcuts to set data class and validation groups

Thanks to those simple shortcuts, when declaring forms as services, you can simply set the data class and/or validation groups.

Sample config:
```xml

%acme.model.user.class%

%some_default_data_class%

%some_default_groups%

```

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes*
| License | MIT
| Doc PR | n/a (yet)

\* - will fix if not =)