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

Dev tools auto generate model and keep model methods

Hello,

I want to use phalcon dev tools to generate all my models but I have a problem if I want to update 1 field inside my existing model (e.g a new foreign key) and if I have afterFetch method etc... phalcon dev tools will not keeping the afterFetch inside my model because the files is totally regenerated.

How can I do ? I have to do the diff myself ?



8.4k

update your phalcon devtools

i just made a test (3.4.0) with different method names including afterFetch and its still there