-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Update dbal.rst #3944
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
Update dbal.rst #3944
Conversation
The SchemaTool throws an error if mapping_types are configured under default.connection. If configured under dbal everything works fine.
it's all a matter of using the expanded syntax or the shortcut syntax for a single connection. |
okay, is it possible to give another example for new symfony developers? with the default configuration the example doesn't work: error while generating mapping
mapping works
|
this is because your first example is a mix of the shortcut and expanded syntaxes, not a usage of one of them. |
i really need to get deeper into that configuration stuff! 😄 |
This relates also to doctrine/DoctrineBundle#299. We've had a few issues lately with people getting confused by the 2 syntaxes, so you're not alone! I think there is probably something we can do in the documentation, but I would like a better error message in the code itself (since you can't use the expanded syntax and the short syntax, you can only choose one - but we should be able to detect if you're trying to use both). I do think we typically document the short syntax (not the expanded), so I would actually be a +1 for merging this, perhaps with a note about the expanded syntax. |
+1 too |
Merged - thanks Benjamin! I'm also going to add a small note about the extended syntax. |
* 2.3: (35 commits) use relative path to page fix xml to specify a method replaced old way of specifying http method by the new one Fixing a mistake Fix use mistakes. [#3944] Tiny addition to mention multiple connections Update dbal.rst [#3888] Changing base template title back [Components] consistent & complete config examples Fixed typos Added link to JSFiddle example some minor improvements describe the usage of the RegisterListenersPass Update deployment-tools.rst Rewrote Extension & Configuration docs add order of translation formats Fix class name in ConsoleTerminateListener example [Book] consistent and complete config examples added Github teams for the core team [book][cache][tip] added cache annotations. ...
* 2.4: (38 commits) use relative path to page fix xml to specify a method replaced old way of specifying http method by the new one Fixing a mistake Fix use mistakes. [#3944] Tiny addition to mention multiple connections Update dbal.rst [#3888] Changing base template title back [Components] consistent & complete config examples Check for api_key in request Update api_key_authentication.rst - POST Method Fixed typos Added link to JSFiddle example some minor improvements describe the usage of the RegisterListenersPass Update deployment-tools.rst Rewrote Extension & Configuration docs add order of translation formats Fix class name in ConsoleTerminateListener example Fixed the code snippets for the expression language functions ...
* 2.5: (39 commits) use relative path to page fix xml to specify a method replaced old way of specifying http method by the new one Fixing a mistake Fix use mistakes. [#3944] Tiny addition to mention multiple connections Update dbal.rst [#3888] Changing base template title back [Components] consistent & complete config examples Check for api_key in request Update api_key_authentication.rst - POST Method Fixed typos Fixed typos Added link to JSFiddle example some minor improvements describe the usage of the RegisterListenersPass Update deployment-tools.rst Rewrote Extension & Configuration docs add order of translation formats Fix class name in ConsoleTerminateListener example ...
The SchemaTool throws an error if mapping_types are configured under default.connection. If configured under dbal everything works fine.