diff --git a/reference/configuration/doctrine.rst b/reference/configuration/doctrine.rst index c7961233a5d..185bf971d7d 100644 --- a/reference/configuration/doctrine.rst +++ b/reference/configuration/doctrine.rst @@ -312,7 +312,7 @@ The following block shows all possible configuration keys: charset: UTF8 logging: '%kernel.debug%' platform_service: MyOwnDatabasePlatformService - server_version: 5.6 + server_version: '5.6' mapping_types: enum: string types: @@ -362,6 +362,11 @@ The following block shows all possible configuration keys: your database server version (use ``postgres -V`` or ``psql -V`` command to find your PostgreSQL version and ``mysql -V`` to get your MySQL version). + + Always wrap the server version number with quotes to parse it as a string + instead of a float number. Otherwise, the floating-point representation + issues can make your version be considered a different number (e.g. ``5.6`` + will be rounded as ``5.5999999999999996447286321199499070644378662109375``). If you don't define this option and you haven't created your database yet, you may get ``PDOException`` errors because Doctrine will try to