afterSave on edit record


How is it possible to do a afterSave only on editing and not creating?

What is the best way this can be done, I am currently thinking of just using Scenarios and putting an IF statement in the afterSave method but is this the best way?


You can of course use scenarios.

But it should be easier to check the built-in isNewRecord property.


Ok thanks.