added foreign key reset when entity is deleted from collection
Merge pull request #56 from hAdamm/as-bugFix

added foreign key reset when entity is deleted from collection