Changed registerDoctrineTypeMapping('enum', 'varchar'); to registerDoctrineTypeMapping('enum', 'string'); as 'string' is the correct type to map to whereas varchar is only an alias.
This commit is contained in:
parent
f76728818b
commit
3a80896173
@ -34,7 +34,7 @@ will even detect this match correctly when using SchemaTool update commands.
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
$conn = $em->getConnection();
|
$conn = $em->getConnection();
|
||||||
$conn->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'varchar');
|
$conn->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
|
||||||
|
|
||||||
In this case you have to ensure that each varchar field that is an enum in the
|
In this case you have to ensure that each varchar field that is an enum in the
|
||||||
database only gets passed the allowed values. You can easily enforce this in your
|
database only gets passed the allowed values. You can easily enforce this in your
|
||||||
|
Loading…
Reference in New Issue
Block a user