I get PHP warnings when importing Relationships. The field mapping uses "Relationship Type ID (Match using name_a_b)".
The function assumes $value is a string, but what get's passed in is the following array:
[[api.RelationshipType.get] => [[sequential] => 1, [return] => [[0] => id], [name_a_b] => VALUE]]
The outcome is that validateField() returns the outcome that relationship_type_id is set to NULL to validateFields() and thence to CRM_Csvimport_Task_Import::ImportEntity(). The NULL gets passed into civicrm_api3 'create' and doesn't seem to do any harm.
ImportEntity() has some code to "check for api chaining in params and run them separately" so it seems the issue is with validateField().
I get PHP warnings when importing Relationships. The field mapping uses "Relationship Type ID (Match using name_a_b)".
The function assumes $value is a string, but what get's passed in is the following array: [[api.RelationshipType.get] => [[sequential] => 1, [return] => [[0] => id], [name_a_b] => VALUE]]
The outcome is that validateField() returns the outcome that relationship_type_id is set to NULL to validateFields() and thence to CRM_Csvimport_Task_Import::ImportEntity(). The NULL gets passed into civicrm_api3 'create' and doesn't seem to do any harm.
ImportEntity() has some code to "check for api chaining in params and run them separately" so it seems the issue is with validateField().