-
-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for 'url' parameter in config #352
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -267,6 +267,14 @@ Doctrine DBAL Configuration | |
accept, converted to the XML or YAML naming standards that Symfony | ||
enforces. See the Doctrine `DBAL documentation`_ for more information. | ||
|
||
.. note:: | ||
|
||
When specifying a "url" parameter, any information extracted from that | ||
URL will override explicitly set parameters. An example database URL | ||
would be "mysql://snoopy:redbaron@localhost/baseball", and any explicitly | ||
set driver, user, password and dbname parameter would be overridden by | ||
this URL. See the Doctrine `DBAL documentation`_ for more information. | ||
|
||
Besides default Doctrine options, there are some Symfony-related ones that you | ||
can configure. The following block shows all possible configuration keys: | ||
|
||
|
@@ -276,6 +284,7 @@ can configure. The following block shows all possible configuration keys: | |
|
||
doctrine: | ||
dbal: | ||
url: mysql://user:secret@localhost:1234/otherdatabase # this would override the values below | ||
dbname: database | ||
host: localhost | ||
port: 1234 | ||
|
@@ -316,6 +325,7 @@ can configure. The following block shows all possible configuration keys: | |
<doctrine:config> | ||
<doctrine:dbal | ||
name="default" | ||
url="mysql://user:secret@localhost:1234/otherdatabase" <!-- this would override the values below --> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the inline comment valid here? Never saw one in the middle of a tag, so I may be wrong here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, but the same is used further down, so I figured it didn't matter. |
||
dbname="database" | ||
host="localhost" | ||
port="1234" | ||
|
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.
Can the referenced URL somehow be improved? You will now reach the front page of the Doctrine DBAL documentation and you will then have to search for the right page explaining the option.
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.
Not for now, the Doctrine DBAL documentation on their website hasn't been updated in ages. Paging @beberlei.