Fixing association callbacks for delete_cache.

issue: https://github.com/rails/rails/issues/7618

The issue is circumvented in:
vendor/engines/your_platform/app/models/active_record_associations_patches.rb

trello: https://trello.com/c/cOa9EpLf/677-veranstaltungen