Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Update dbal.rst#3944
Uh oh!
There was an error while loading.Please reload this page.
Conversation
The SchemaTool throws an error if mapping_types are configured under default.connection. If configured under dbal everything works fine.
stof commentedJun 13, 2014
it's all a matter of using the expanded syntax or the shortcut syntax for a single connection. |
bpiepiora commentedJun 13, 2014
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 |
stof commentedJun 13, 2014
this is because your first example is a mix of the shortcut and expanded syntaxes, not a usage of one of them. |
bpiepiora commentedJun 13, 2014
i really need to get deeper into that configuration stuff! 😄 |
weaverryan commentedJun 19, 2014
This relates also todoctrine/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 syntaxand the short syntax, you can only choose one - but we should be able to detect if you're trying to use both). Ido 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. |
wouterj commentedAug 15, 2014
+1 too |
weaverryan commentedAug 16, 2014
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.