Julien Baldy
Julien Baldy

Reputation: 426

Symfony 2 - Doctrine, how to generate entities from database

I want to import my database with Doctrine, so i followed the official doc here

and i used the command

php bin/console doctrine:mapping:import --force AppBundle xml

but with this command this is the entire base (all tables) was imported. I have many tables, a hundred, and i want use a filter with the command. How it is possible ? i search to import just few tables

Upvotes: 1

Views: 550

Answers (1)

Alessandro Minoccheri
Alessandro Minoccheri

Reputation: 35983

try this please:

php bin/console doctrine:mapping:import --force AppBundle xml --filter="Yourtablename"

Upvotes: 1

Related Questions