CakePHP save associated model data in afterSave -
I have a task model and project model, the work is for a project, which I want to do in the aftersave work Update the model, a field in the project model, but I'm having trouble trying to use $ the-> Task-> Project-> Find (), thank you without any happiness.
You are probably looking for saveAll ()
Side note: How do you find '(') to save your data?
Comments
Post a Comment