Fix information object deletion
|Target version:||Release 2.4.0|
|Google Code Legacy ID:||Tested version:|
Unable to execute DELETE statement. [wrapped: SQLSTATE: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`atom`.`premis_object`, CONSTRAINT `premis_object_FK_2` FOREIGN KEY (`information_object_id`) REFERENCES `information_object` (`id`))]
I'm not sure why we don't have a cascade method in the SQL schema for the digital and premis objects, but the same could happen for both kind of objects if we forgot to manually delete them where we delete the information object, I think we should move those deletions inside the information object delete method.