Details
-
Type:
Documentation
-
Status:
Open
-
Priority:
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.