Hello I know how to use Service::beforeSave etc to update properties of an entity during the save process, However, how would I update an entity when related entities are removed / added ?
An example would be Meeting::entryCount which counts the number of entities attending a meeting. This should reflect the number of related entities. So if I remove a contact, entryCount should decrease by 1.
An example would be Meeting::entryCount which counts the number of entities attending a meeting. This should reflect the number of related entities. So if I remove a contact, entryCount should decrease by 1.
Comment