Add ondelete cascade to bom inputs and outputs

issue3450
review1471002