Commit ef85340f authored by ver1tas's avatar ver1tas

Fixed brace and spaces

parent 6ec11533
...@@ -102,7 +102,7 @@ collection of constraints:: ...@@ -102,7 +102,7 @@ collection of constraints::
'title' => new Assert\Length(array('min' => 10)), 'title' => new Assert\Length(array('min' => 10)),
'author' => new Assert\Collection(array( 'author' => new Assert\Collection(array(
'first_name' => array(new Assert\NotBlank(), new Assert\Length(array('min' => 10))), 'first_name' => array(new Assert\NotBlank(), new Assert\Length(array('min' => 10))),
'last_name' => new Assert\Length(array('min'=>10), 'last_name' => new Assert\Length(array('min' => 10)),
)), )),
)); ));
$errors = $app['validator']->validateValue($book, $constraint); $errors = $app['validator']->validateValue($book, $constraint);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment