Skip to content

Commit bb085da

Browse files
guzzlefrywouterj
authored andcommitted
SetDescription required on Product entities
Doctrine sets columns to NOT NULL by default. The code in the example throws an exception without the fix.
1 parent 422e0f1 commit bb085da

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)