MinnPost / object-sync-for-salesforce

WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
https://wordpress.org/plugins/object-sync-for-salesforce/
GNU General Public License v2.0
94 stars 51 forks source link

As part of the work to support multiple fieldmaps on the same Salesforce object type, object maps need to be loaded with information about the fieldmap. #438

Closed jonathanstegall closed 2 years ago

jonathanstegall commented 2 years ago

What does this Pull Request do?

This fixes #437 by adding a new method, load_object_maps_by_salesforce, that takes the fieldmap as a parameter so we can specify the WordPress object type when loading object maps that are tied to a Salesforce ID.

This also deprecates load_all_by_salesforce.

How do I test this Pull Request?

Same steps as #420.