We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon tools setSchema by default now?

updated to 3.0.5 and added some new models and it added the setSchema in the init. Is that the default now? I just want to be sure since it really messed me up running multiple dev/prod env that are set well before the models. quite the goosechase.



13.8k

Not sure if this answer will help but. I also updated my devtool while i was working on a project and noticed this. However removing the line doesnt seem to have any effect, since models generated before updating the tools didnt have them. It might have something to do with generating migrations, but again havent checked the effect of it.

You can use --schema="" key to create initialize() without setSchema()