Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down