Fixes cascade delete with has_one relations in soft models