civicrm/civicrm-core — pull request #242 by pradpnayak (2013-03-25 11:40:12+00:00)
Title: --fixed for CRM-12155

Initially when contact was deleted permanently contribution, membership and participants rows get deleted for contact because of ON DELETE CASCADE, its related rows for contribution, participant were not deleted since there was no BAO handling for contribution and participant.