added a dependent clause to destroy all associated objects