Doctrine2: How to set all tables to collate with UTF8

前端 未结 14 1023
夕颜
夕颜 2020-12-08 02:55

I am using Doctrine with Symfony2. My config.yml file looks something like this:-

Doctrine Configuration

doctrine:
    dbal:
        driver: %data         


        
14条回答
  •  一整个雨季
    2020-12-08 03:40

    Since DoctrineBundle 2.0, utf8mb4 is the default value for MySQL. So, you don't need to configure anything anymore.

    See https://github.com/doctrine/DoctrineBundle/blob/master/UPGRADE-2.0.md

提交回复
热议问题