I'm trying to set custom column collation as in Doctrine documentation:
- http://doctrine-dbal.readthedocs.org/en/latest/reference/schema-representation.html and
- http://doctrine-orm.readthedocs.org/en/latest/reference/annotations-reference.html
using
@ORM\Column(name="body", type="string", length=140, options={"customSchemaOptions"={"collate"="utf8mb4_unicode_ci"}})
but when I update the schema it always goes back to utf8_unicode_ci (when I set it manually for example). Any ideas?
This has been added by now if you (or someone else) still need, see column annotation docs
Example: In annotations:
In Yaml:
This is supported by all common database drivers now.