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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -