Unverified Commit 10c30934 authored by Steffen Roßkamp's avatar Steffen Roßkamp Committed by GitHub

Add warning about MySQL JSON key sorting

See discussion at https://github.com/doctrine/doctrine2/issues/7187
parent 03c0797f
...@@ -431,6 +431,12 @@ Values retrieved from the database are always converted to PHP's ``array`` or ...@@ -431,6 +431,12 @@ Values retrieved from the database are always converted to PHP's ``array`` or
Doctrine cannot map back this type properly on vendors not supporting column Doctrine cannot map back this type properly on vendors not supporting column
comments and will fall back to ``text`` type instead. comments and will fall back to ``text`` type instead.
.. warning::
You should never rely on the order of your JSON object keys, as some vendors
like MySQL sort the keys of its native JSON type using an internal order
which is also subject to change.
json_array json_array
^^^^^^^^^^ ^^^^^^^^^^
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment