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

c# - Reactive Extensions ControlScheduler -

ios - How to determine if NSLayoutConstraint is horizontal or vertical? -

javascript - Enable/Disable form elements and changing the values of button at a time? -