added connection to service configuration of RepositorySchema #270
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The following issue in Sulu was reported: sulu/sulu#3106
Long story short: Currently utf8 emojis like "🎄" are not working with jackalope-doctrine-dbal, because it uses the limited
utf8
charset instead ofutf8mb4
. I thought I can simply change the charset in doctrine dbal, but jackalope seemed to ignore it.I found out that the service configuration didn't pass the
Connection
class, so it was using some default values instead of what has been defined in the DoctrineBundle. So the tables defined in the RepositorySchema did not use thedefault_table_options
defined in the application configuration.After changing this there was another error when creating the table, for which I will create another PR in jackalope-doctrine-dbal.
I hope simply injecting the default connection is good enough, although I can imagine that there are some usecases where this should be configurable. Maybe we should move that logic to the extension somehow?