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
Conversation
@dzuelke I guess the XSD file has to be updated as well. |
Good point @xabbuh, updated (and some docs, too) |
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. |
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.
Paging @stof / @kimhemsoe / @guilhermeblanco - can we get this merged and released please? Otherwise that new DBAL feature can't be used. |
@@ -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 comment
The 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 comment
The 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.
@beberlei The tests are failing because doctrine/orm 2.4's foreach ($class->reflClass->getProperties(\ReflectionProperty::IS_PUBLIC) as $publicAttr) { but This is unrelated to my PR; the tests fail on master etc as well. Seems to be a version incompatibility thing; it fetches lots of dev dependencies due to What to do? |
Changing the version requirement for Yay version hell. |
I would just bump the version requirement to 2.5, but installation will fail until the ORM is actually released |
Please don't bump the requirement to 2.5 if it is not released yet. I don't want to have to maintain multiple versions in parallel because of that |
Yeah, looks like an ORM 2.5 is close though. Just a few issues left, and some of them look like they'll be moved to 3.0. Poking @beberlei again :p |
Btw, if the SchemaValidator is broken on Doctrine ORM 2.4, please report an issue on Doctrine ORM itself, as it should be fixed. |
@dzuelke I'll have to tag the ORM in few days: requires a full week of work though. |
I don't think it's broken, @stof. It's just an incompatibility between ORM 2.4 and something else. When you "composer install" on DoctrineBundle itself, the |
I have really no idea how this test ever passed. Nothing related to it seems to have changed in the bundle or in ORM. These:
in Fixing that
There is some big arse version conflict thing going on that I can't figure out. I mean, the tests are failing even if you just run them on the bundle's master, not just this pull request. Something, somewhere, changed and that causes the tests to fail. |
Assigning @kimhemsoe for review/merge |
Well this works and is pretty trivial, @Ocramius, but the real issue is that tests are still failing due to unrelated version conflicts, even on master, and there's no solution and I haven't figured it out yet (I saw you closed the doctrine/orm#1237 PR that attempted to fix this). Should I spin that off into its own bug report? |
Should I put the tests into |
I merged the Pr fixing the testsuite. Can you rebase your branch to rerun the testsuite with the fix ? |
Done. Looks like all is well! |
Thanks @dzuelke. |
Supported since Doctrine 2.5.0 :)