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

Save() not working on related

Save() not working on related models when you have relational columns in array form in your hasMany() or hasOne(), like this: https://medium.com/code-kings/phalcon-save-method-not-implemented-troubleshooting-solution-27dd6fbd0389#.uimr6hgyz and https://forum.phalcon.io/discussion/3788/saveupdatecreate-fails-on-models-with-relations-using-composite-

It just says Not Imploment

When this will be fixed?



11.6k

what kind of advantage you have to use this array notation to define relations? Won't you get same result using one line by relation?



1.9k

What do you mean exactly by "using one line by relation" ?



11.6k

sorry, missing the fact that is abouta composite relation, not just multiple ones...

Well it's not even implemented, so there are nothing to fixed currently, but don't know why it's not implemented exactly, i guess it has something to do that phalcon don't allow to edit primiary keys in his orm maybe ?



1.9k
Accepted
answer

Check fork on my github, it is implemented there