- Issue created by @balazswmann
- ๐ญ๐บHungary balazswmann
I'm attaching a patch to resolve the issue for salesforce 5.1.1
- ๐บ๐ธUnited States AaronBauman Philadelphia
This is fine for now, but imo we should enforce implementation of SynchronizableInterface in order for entities to be mappable.
I see you're mapping a custom object, why not just implement the interface?
- ๐ฎ๐ณIndia prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
prem suthar โ made their first commit to this issueโs fork.
- Merge request !91Try To address the #3 suggestion and convert the patch to mr for better review. โ (Open) created by prem suthar
- ๐ญ๐บHungary balazswmann
@aaronbauman:
I see you're mapping a custom object, why not just implement the interface?
Because it's not my code. It's a contrib. We cannot tell contrib developers to please implement the
SynchronizableInterface
interface for all custom entities to make sure that the Salesforce Suite module does not break :) It's the Salesforce module's responsibility to make sure that the methods and functions it's using (either from core or from other contribs) are available and callable. - ๐บ๐ธUnited States AaronBauman Philadelphia
Because it's not my code. It's a contrib
Well, yes, i guess that would do it.
I can't think of a reason why an entity would not be either config or content, but I guess they've found one.
You're right, there's no reason we should prevent this kind of entity from being mapped.However, a word of caution: in terms of the motivation for isSyncing() - this check is designed to prevent push-pull feedback loops between Drupal and Salesforce. I'm not inclined to implement a workaround inside the module for this edge case, but something you'll want to watch out for.
- ๐บ๐ธUnited States AaronBauman Philadelphia
aaronbauman โ changed the visibility of the branch 3502753-call-to-undefined to hidden.
-
aaronbauman โ
committed b6a44585 on 5.0.x
Issue #3502753 by balazswmann: Call to undefined method ::isSyncing()...
-
aaronbauman โ
committed b6a44585 on 5.0.x
-
aaronbauman โ
committed bd5f92d1 on 5.1.x
Issue #3502753 by balazswmann: Call to undefined method ::isSyncing()...
-
aaronbauman โ
committed bd5f92d1 on 5.1.x
- ๐ญ๐บHungary balazswmann
@aaronbauman Thank you very much for the commit and in general for your thoughts about this problem.
- Status changed to Fixed
3 days ago 9:34am 2 April 2025 Automatically closed - issue fixed for 2 weeks with no activity.