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

Merge pull request #25 from wilmoore/master

use 'string' instead of 'varchar'
This commit is contained in:
Benjamin Eberlei 2011-07-26 14:25:53 -07:00
commit 3a70ee6662

View File

@ -34,7 +34,7 @@ will even detect this match correctly when using SchemaTool update commands.
<?php
$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
database only gets passed the allowed values. You can easily enforce this in your