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

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -

javascript - parsing json not working -