Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate Entities from an Existing Database

Tags:

php

symfony

I am new to Symfony and now I am currently doing an application using this framework. I am now trying to generate entities from an existing database and while I run the following command:

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

I've got this error message:

No Metadata Classes to process.

Could you please tell me what's happening with this?

like image 836
user123 Avatar asked Apr 23 '15 05:04

user123


Video Answer


1 Answers

From the docs, it seems you are missing the --from-database argument. I've never used that tool though.

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
like image 157
Lunfel Avatar answered Sep 21 '22 04:09

Lunfel