$ cat composer.json
In some case, you will meet a secondary development project based on mysql.It has a complete database and your new project bases on Symfony framework.
As you know, if there are entities mapping class will speed up your development. So this is why this tutorial exist.
First of all: this converter doesn’t support some basic MySQL data types by default, so you have to edit your app/config/config.yml file as follows:
You might need to add some other types, too.
As Doctrine does not support any of these:
BIT, BINARY, VARBINARY, TINYBLOB, MEDIUMBLOB, BLOB, LONGBLOB, ENUM, SET, GEOMETRY, POINT, MULTIPOINT, LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON.
OK, that might sound obvious.
But I real had some tables without the key.
$ php app/console doctrine:mapping:import --force AppBundle xml -vvv
$ php app/console doctrine:mapping:convert annotation ./src
$ php app/console generate:doctrine:entities AppBundle
Ok, entities will all be done!