when the object is saved/updated, check the associations and save/update any object that require it (including save/update the associations in many-to-many scenario).