Skip to content

Commit

Permalink
bug #4506 SetDescription required on Product entities (yearofthegus)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wouterj committed Nov 23, 2014
2 parents 422e0f1 + bb085da commit 4f66d48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions book/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,7 @@ Now you can see this new code in action! Imagine you're inside a controller::
$product = new Product();
$product->setName('Foo');
$product->setPrice(19.99);
$product->setDescription('Lorem ipsum dolor');
// relate this product to the category
$product->setCategory($category);

Expand Down

0 comments on commit 4f66d48

Please sign in to comment.