Where to update relations?

I’ve a model related with other models. When I insert or update, related models must be updates. Where should I do this updates? Is it better to do it inside insert or update controller action or inside a beforeSave or afterSave model methods?

You should make it in afterSave method because it prevents code repeating and it’s more obvious.