doctrine:build-schema doesn't generate schema properly

247 Views Asked by At

I've a previously created DB with sfDoctrineGuard tables and also two more tables: almunos and socios. I'm trying to run the task

symfony doctrine:build-schema 

and aparently seems to work but surprise only the tables related to sfDoctrineGuard plugin appears and not the others two. Why? Did I miss something? What I'm doing wrong?

1

There are 1 best solutions below

0
j0k On BEST ANSWER

As the task description says:

The doctrine:build-schema task introspects a database to create a schema:

./symfony doctrine:build-schema

The task creates a yml file in config/doctrine.

So you have to look inside the folder config/doctrine to check the generated schema.yml.