symfony/symfony-docs — Issue #1003: Book - Validation - Missing return statement in code example
Author: Zenklys
Created: 2012-01-17 16:54:41+00:00
State: open

In one of the example, a `return` statement is missing.

> if ($form->isValid()) {
> // the validation passed, do something with the $author object
>
> $this->redirect($this->generateUrl('...'));
> }

Should be :

`return $this->redirect($this->generateUrl('..');`