sonata-project/SonataPageBundle — pull request #63 by Taluu (2012-03-16 16:36:58+00:00)
Title: [Validation] Fails if "name" is not filled when creating a new page

Hi,

The following behat scenario fails (In the sandbox, this scenario is located in `features/backend/page/page.feature` around the 13th line) :

```gherkin
Scenario: Add a new page with some errors
When I am connected with "admin" and "admin" on "admin/sonata/page/page/create?uniqid=4f155592a220e"
And I press "Create"
Then I should see "An error has occurred during item creation."
```

The validator for the name attribute was never called, resulting in an internal error from PDO ("column name can not be null"). I added the validator for name (in `Resources/config/validation.xml`) in the `Default` group, making it callable by the `PageAdminController`.

The other groups (`cms_route` and `action_route`) were not associated to the form responsible for this action, and I was not sure if I should have altered the AdminController or something else, so I choose to alter the validation file rather than something else.