1
0
mirror of synced 2024-12-15 07:36:03 +03:00

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:
Wil Moore III 2011-04-08 10:44:55 -07:00
parent f76728818b
commit 3a80896173

View File

@ -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