diff --git a/doctrine.rst b/doctrine.rst index e22453db8a9..70f538e520b 100644 --- a/doctrine.rst +++ b/doctrine.rst @@ -448,12 +448,6 @@ Consider the following controller code:: public function createProduct(ValidatorInterface $validator): Response { $product = new Product(); - // This will trigger an error: the column isn't nullable in the database - $product->setName(null); - // This will trigger a type mismatch error: an integer is expected - $product->setPrice('1999'); - - // ... $errors = $validator->validate($product); if (count($errors) > 0) {