Jump to content

Doctrine 2 console commands have no effect


Dumps

Recommended Posts

I'm experiencing issues with the console commands in Doctrine 2.

 

During first set up of my project I could run the console commands to update the db from my annotated models without a problem e.g.

 

doctrine orm:schema-tool:update --force

 

Since then I've been diligently working away on the project and now need to run this again. However, now when the above runs nothing happens. No error message, no report on success - the command just completes silently.

 

I'm presuming that I've done something that's broken this but I've no way of knowing without some kind of error report so I'm stumped.

 

How can I work out what the problem is????

 

Answering my own question...

 

This seems to break after I added some further classes to the models directory. In hindsight these should have been elsewhere, and, now they've been moved, the console command works again. Some kind of message would be nice though, rather than silent death.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.