craphunter
craphunter

Reputation: 830

Create Entities from existing DB

Newest Version Symfony2 and using MAMP on a MAC. Following command:

php app/console doctrine:mapping:convert yml ./src/Acme/DemoBundle/Resources/config/doctrine/metadata/orm --from-database --force

My Error:

[Doctrine\DBAL\DBALException]                                                                    
  Unknown database type enum requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it.

Don't have any idea. What is wrong?

A connection to my db is working. Because I tried to create a table and the output was that the table exist.

Upvotes: 3

Views: 2489

Answers (1)

craphunter
craphunter

Reputation: 830

Sorry, I missed it and here is the solution of my question.

http://symfony.com/doc/current/cookbook/doctrine/dbal.html#registering-custom-mapping-types-in-the-schematool

Upvotes: 8

Related Questions