We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9aa7d5b + 7700c58 commit 9200491Copy full SHA for 9200491
doctrine.rst
@@ -449,12 +449,8 @@ Consider the following controller code::
449
public function createProduct(ValidatorInterface $validator): Response
450
{
451
$product = new Product();
452
- // This will trigger an error: the column isn't nullable in the database
453
- $product->setName(null);
454
- // This will trigger a type mismatch error: an integer is expected
455
- $product->setPrice('1999');
456
457
- // ...
+ // ... update the product data somehow (e.g. with a form) ...
458
459
$errors = $validator->validate($product);
460
if (count($errors) > 0) {
0 commit comments