Skip to content

Commit 4f66d48

Browse files
committed
bug #4506 SetDescription required on Product entities (yearofthegus)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #4506). Discussion ---------- SetDescription required on Product entities Doctrine sets columns to NOT NULL by default. The code in the example throws an exception without the fix. Commits ------- bb085da SetDescription required on Product entities
2 parents 422e0f1 + bb085da commit 4f66d48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

book/doctrine.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,7 @@ Now you can see this new code in action! Imagine you're inside a controller::
11051105
$product = new Product();
11061106
$product->setName('Foo');
11071107
$product->setPrice(19.99);
1108+
$product->setDescription('Lorem ipsum dolor');
11081109
// relate this product to the category
11091110
$product->setCategory($category);
11101111

0 commit comments

Comments
 (0)