case xml processor skips pre hook when creating roles/relationships
While trying to implement some custom modifications to case roles when a case is created, I found that the relationship creation is not passed through the pre/post hooks. This is because the XML Processor does a direct DAO insertion, rather than using the BAO add() method.
See: https://github.com/civicrm/civicrm-core/blob/master/CRM/Case/XMLProcessor/Process.php#L248
I think this can be safely swapped for CRM_Contact_BAO_Relationship::add(). But looking for others to provide input.