Skip to content

Commit 76211dc

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: [Doctrine] Update doctrine.rst
2 parents 055c7b2 + ccaf3a1 commit 76211dc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

doctrine.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,12 +448,8 @@ Consider the following controller code::
448448
public function createProduct(ValidatorInterface $validator): Response
449449
{
450450
$product = new Product();
451-
// This will trigger an error: the column isn't nullable in the database
452-
$product->setName(null);
453-
// This will trigger a type mismatch error: an integer is expected
454-
$product->setPrice('1999');
455451

456-
// ...
452+
// ... update the product data somehow (e.g. with a form) ...
457453

458454
$errors = $validator->validate($product);
459455
if (count($errors) > 0) {

0 commit comments

Comments
 (0)