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

DevTools genarate model with relation

Hello , What command should i use to genarate model with some relation and foreignKey ? At the moment I'm genarating like : phalcon model --name somename --get-set

Preaty happy with that, but want to know can I set and the relation too :)

HI ! Your tables must use the innoDB engine, and I don't genreate one by one the models, but all in the same time.

phalcon all-models --get-set --doc

That's should work.

PS : The --doc is useful for IDE's



24.9k

Yes but I want to setup and virtual keys that Phalcon can porovide for me