Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DoctrineBundle] added back the possibility to easily define one DBAL…
… connection The reasonning reads as follows: Most users will only ever use one database connection (and probably one entity manager for that matter). So, this most common use case should be as easy as possible to configure. This is BC. Before: doctrine: dbal: default_connection: default connections: default: driver: pdo_mysql dbname: Symfony2 user: root password: null After (optional): doctrine: dbal: driver: pdo_mysql dbname: Symfony2 user: root password: null
- Loading branch information
Showing
3 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 4 additions & 7 deletions
11
...neBundle/Tests/DependencyInjection/Fixtures/config/yml/dbal_service_single_connection.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
doctrine: | ||
dbal: | ||
default_connection: mysql | ||
connections: | ||
mysql: | ||
dbname: mysql_db | ||
user: mysql_user | ||
password: mysql_s3cr3t | ||
unix_socket: /path/to/mysqld.sock | ||
dbname: mysql_db | ||
user: mysql_user | ||
password: mysql_s3cr3t | ||
unix_socket: /path/to/mysqld.sock |
e63c2e2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have problem with dbal encoding after your last changes