Heys guys,
i have a Class “Department” with a relation “users” and an attribute userCount".
I want to set the userCount according to the count of the relation “users”. In beforeSave the changes to the relation aren’t applied and in the afterSave i will get a endless loop because I am saving the same object again.
Is there a trick to do that?
Thanks!