diff --git a/Resources/doc/configuration.rst b/Resources/doc/configuration.rst index 7be62e679..cc7ecf67b 100644 --- a/Resources/doc/configuration.rst +++ b/Resources/doc/configuration.rst @@ -993,52 +993,59 @@ can configure. The following block shows all possible configuration keys: .. code-block:: xml - - - - - - dbname="database" - host="localhost" - port="1234" - user="user" - password="secret" - driver="pdo_mysql" - driver-class="MyNamespace\MyDriverImpl" - path="%kernel.project_dir%/var/data.db" - memory="true" - unix-socket="/tmp/mysql.sock" - persistent="true" - multiple-active-result-sets="true" - pooled="true" - protocol="TCPIP" - server="my_database_server" - service="true" - servicename="MyOracleServiceName" - sessionMode"2" - default_dbname="database" - sslmode="require" - sslrootcert="postgresql-ca.pem" - sslcert="postgresql-cert.pem" - sslkey="postgresql-key.pem" - sslcrl="postgresql.crl" - wrapper-class="MyDoctrineDbalConnectionWrapper" - charset="UTF8" - logging="%kernel.debug%" - platform-service="MyOwnDatabasePlatformService" - auto-commit="false" - schema-filter="^sf2_" - > - bar - string - utf8 - utf8_unicode_ci - InnoDB - Acme\HelloBundle\MyCustomType - - + + + + + + dbname="database" + host="localhost" + port="1234" + user="user" + password="secret" + driver="pdo_mysql" + driver-class="MyNamespace\MyDriverImpl" + path="%kernel.project_dir%/var/data.db" + memory="true" + unix-socket="/tmp/mysql.sock" + persistent="true" + multiple-active-result-sets="true" + pooled="true" + protocol="TCPIP" + server="my_database_server" + service="true" + servicename="MyOracleServiceName" + sessionMode"2" + default_dbname="database" + sslmode="require" + sslrootcert="postgresql-ca.pem" + sslcert="postgresql-cert.pem" + sslkey="postgresql-key.pem" + sslcrl="postgresql.crl" + wrapper-class="MyDoctrineDbalConnectionWrapper" + charset="UTF8" + logging="%kernel.debug%" + platform-service="MyOwnDatabasePlatformService" + auto-commit="false" + schema-filter="^sf2_" + > + bar + string + utf8 + utf8_unicode_ci + InnoDB + Acme\HelloBundle\MyCustomType + + + If you want to configure multiple connections in YAML, put them under the ``connections`` key and give them a unique name: