Removing references from parents

Removing references from parents when using destroy [optional]
added a test case for removing references from parents ( Issue #113 )
Merge pull request #114 from mrAdm/feature

Removing references from parents when using destroy [optional]