0

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?

ReynierPM
  • 17,594
  • 53
  • 193
  • 363
  • Where did you defined the others two tables? – j0k Mar 07 '13 at 16:27
  • @j0k do I need to define them? I tough that build-schema takes tables directly from DB and creates the file schema.yml, I'm wrong? – ReynierPM Mar 07 '13 at 16:30
  • Oh right, sorry. Yes, you seems to be right, I don't then why it doesn't generate your schema .. – j0k Mar 07 '13 at 16:35
  • @j0k ;) don't worry, but something is really wrong here. I run the task `build-schema` and my schema.yml isn't change but I run `build-models` and tables appears > >> tokens /var/www/html/rayundown/lib/model/doctrine/base/BaseSocios.class.php, why? – ReynierPM Mar 07 '13 at 16:38
  • What do you have inside your folder `config/doctrine` once the task has run? – j0k Mar 07 '13 at 17:33
  • @j0k Ohhhh the schema.yml file with the table definitios, that's my bad, I didn't look there before, forgot complete that Doctrine generates schema inside config/doctrine and not in config/ thanksç – ReynierPM Mar 07 '13 at 17:35

1 Answers1

1

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.

j0k
  • 22,600
  • 28
  • 79
  • 90