You can take that exact error message, paste it into google search and you'll find this:
http://wildlyinaccurate.com/doctrine-2-resolving-unknown-database-type-enum-requested Yes, Doctrine2 does not support ENUMs, given that they are not consistently working cross-platform :-) Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 1 February 2014 13:39, Parsifal <[email protected]> wrote: > I did set my bootsrap.php line this: > > // bootstrap.php > require_once "../vendor/autoload.php"; > use Doctrine\ORM\Tools\Setup; > use Doctrine\ORM\EntityManager; > $paths = array(__DIR__."/src"); > $isDevMode = false; > // the connection configuration > $dbParams = array( > 'driver' => 'pdo_mysql', > 'user' => 'MY_DB_USERNAME', > 'password' => 'MY_PASSWORD', > 'dbname' => 'MY_DB_NAME', > ); > $config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode); > $entityManager = EntityManager::create($dbParams, $config); > == > then cli-config.php like this: > > require_once "bootstrap.php"; > return > \Doctrine\ORM\Tools\Console\ConsoleRunner::createHelperSet($entityManager); > === > now I want to auto-generate yml files from mysql database running this > command: > php ../vendor/bin/doctrine orm:convert-mapping --from-database yml /src > > but I get this error: > [Doctrine\DBAL\DBALException] > Unknown database type enum requested, > Doctrine\DBAL\Platforms\MySqlPlatform > may not support it. > > how can I fix it and how can I auto-generate PHP models instead of yml? > please advice. (pdo_mysql extension is installed on myserver). > > > > > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/groups/opt_out.
