-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Update doctrine.rst #9141
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 doctrine.rst #9141
Conversation
reference/configuration/doctrine.rst
Outdated
| collate: ~ | ||
| path: ~ | ||
| memory: ~ | ||
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.
just a minor comment: this blank line should be removed (but we can do that while merging)
javiereguiluz
left a comment
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.
To be honest, this looks like a bug or a poor DX in DoctrineBundle. Table charset/collate should be the same as the one configured in the database ... unless you configure the table options explicitly. But maybe I'm missing something here.
|
For the records, there is a related issues in the DoctrineBundle repo (see doctrine/DoctrineBundle#766). |
my doctrine.yml had a ```charset: utf8mb4``` but my schema update generated tables with utf8. Seems like there is a separate configuration directive for the tables and this is not inherited from the database
|
@tvlooy thanks for this nice little tip. I hope DoctrineBundle fixes it in the future and this is no longer needed. By the way, we merged this in 2.7 branch. |
This PR was submitted for the 4.0 branch but it was merged into the 2.7 branch instead (closes #9141). Discussion ---------- Update doctrine.rst my doctrine.yml had a ```charset: utf8mb4``` but my schema update generated tables with utf8. Seems like there is a separate configuration directive for the tables and this is not inherited from the database Commits ------- 81f9051 Update doctrine.rst
my doctrine.yml had a
charset: utf8mb4but my schema update generated tables with utf8. Seems like there is a separate configuration directive for the tables and this is not inherited from the database