Creating Entities from an Existing Database

I am new to Symfony and now I am building an application using this framework. Now I am trying to generate entities from an existing database , and when I run the following command:

php app\console doctrine:mapping:convert annotation .\src\AppBundle\Resources\config\doctrine 

I have this error message:

There are no metadata classes to process.

Could you tell me what is happening with this?

+6
source share
1 answer

From the docs, it seems you are missing the -from-database argument. I have never used this tool.

http://symfony.com/fr/doc/current/cookbook/doctrine/reverse_engineering.html

 php app/console doctrine:mapping:convert xml ./src/Acme/BlogBundle/Resources/config/doctrine/metadata/orm --from-database --force 
+5
source

Source: https://habr.com/ru/post/985750/


All Articles