ddeboer/DdeboerSalesforceMapperBundle — Issue #7: When fetching one-to-many relations, don’t fetch the parent twice
Author: ddeboer
Created: 2012-02-29 08:11:19+00:00
State: open

When fetching one-to-many relations, such as an opportunity with its contact roles, a 'query length exceeded' error occurs. This is probably caused by the mapper first selecting all fields from the Opportunity, then from OpportunityContactRole, and then again from the OpportunityContactRole.Opportunity. Some kind of check needs to be added that an object is fetched no more than once.