Doctrine Website
  1. Doctrine Website
  2. DWEB-92

Incorrect code snippet in cookbook, mysql enums

    Details

    • Type: Documentation Documentation
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      DBAL 2.1

      Description

      The codesnippet @solution 1 does not work for me
      http://www.doctrine-project.org/docs/orm/2.0/en/cookbook/mysql-enums.html#solution-1-mapping-to-varchars

      It did work using :
      $con->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');

      On a side note: I think loads of users use Mysql (and enums) and it could be helpfull if there are links in de dbal documentation to this page.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Elja van Tol
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: