Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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.phalconphp.com/discussion/3788/saveupdatecreate-fails-on-models-with-relations-using-composite-

It just says Not Imploment

When this will be fixed?

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.7k

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

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.7k
Accepted
answer

Check fork on my github, it is implemented there