Skip to content

Commit ccaf3a1

Browse files
committed
Minor tweak
1 parent 623bb12 commit ccaf3a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doctrine.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ Consider the following controller code::
449449
{
450450
$product = new Product();
451451

452+
// ... update the product data somehow (e.g. with a form) ...
453+
452454
$errors = $validator->validate($product);
453455
if (count($errors) > 0) {
454456
return new Response((string) $errors, 400);

0 commit comments

Comments
 (0)