Skip to content

Commit 9d6041c

Browse files
committed
Merge pull request #1493 from WouterJ/update_validation_code
[Book/Validation] Removed namespace at creating new instance
2 parents 2c6e534 + f139e4c commit 9d6041c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ workflow looks like the following from inside a controller::
221221

222222
public function updateAction(Request $request)
223223
{
224-
$author = new Acme\BlogBundle\Entity\Author();
224+
$author = new Author();
225225
$form = $this->createForm(new AuthorType(), $author);
226226

227227
if ($request->getMethod() == 'POST') {

0 commit comments

Comments
 (0)