Is there a way with an associated model to determine whether a save was triggered by the model itself, or its parent?
So for example - I have a “Member” who HasMany “MemberStatuses”
During the initial create, the “Member” and the initial “MemberStatus” is created. Subsequently I can add a new “MemberStatus”. Can I ascertain whether the MemberStatus save was create as a result of a Member save with associated models?
Reason I ask is I need to determine the in the afterSave for the “MemberStatuses” and have different logic accordingly.
Thanks in advance