Skip to content

Commit 557b63b

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: Add a note about a possible SQLite error
2 parents 7437b10 + c5f36ad commit 557b63b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doctrine.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,20 @@ Woh! You now have a new ``src/Entity/Product.php`` file::
163163
Confused why the price is an integer? Don't worry: this is just an example.
164164
But, storing prices as integers (e.g. 100 = $1 USD) can avoid rounding issues.
165165

166+
.. note::
167+
168+
If you are using an SQLite database, you'll see the following error:
169+
*PDOException: SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL
170+
column with default value NULL*. Add a ``nullable=true`` option to the
171+
``description`` property to fix the problem.
172+
173+
.. note::
174+
175+
A bundle can accept only one metadata definition format. For example, it's
176+
not possible to mix YAML metadata definitions with annotated PHP entity
177+
class definitions.
178+
>>>>>>> 3.4
179+
166180
.. caution::
167181

168182
There is a `limit of 767 bytes for the index key prefix`_ when using

0 commit comments

Comments
 (0)