I'm using this logic, but the collection is not considered during the update. It seems to me, that for attachments the update logic is somehow different. Has anyone experienced the same behavior?