Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: Git Master
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Environment:
      Debian Jessie, MySQL Community Server 5.7.4 m14

      Description

      1. My MySQL server has default character set `utf8mb4` and collation `utf8mb4_unicode_ci`.

      2. Database created for ORM has the same character set and collation as the server.

      3. When I use command `doctrine orm:schema-tool:create` to create a schema, a table with character set `utf8` and collation `utf8_unicode_ci` is created (should be utf8mb4 and utf8mb4_unicode_ci).

      4. When I use mysql client to create table, no problem at all.

      I'm not sure is it intended or not, doctrine will just ignore utf8mb4 character set?

        Activity

        Hide
        Marco Pivetta added a comment -

        Doctrine automatically adds utf8 and utf8_unicode_ci as charset and collation in the DDL used to create tables.

        You will need to manually tweak this using additional table-specific mappings.

        Show
        Marco Pivetta added a comment - Doctrine automatically adds utf8 and utf8_unicode_ci as charset and collation in the DDL used to create tables. You will need to manually tweak this using additional table-specific mappings.

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            eatnut
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: