Guest User

Untitled

a guest
Nov 24th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. /**
  2. * {@inheritdoc}
  3. */
  4. public function isSyncAllowed($action) {
  5. if (!$this->mappingObject) {
  6. throw new SalesforceException('Salesforce mapping object is not set.');
  7. }
  8.  
  9. return $action == SalesforceSync::SYNC_ACTION_DELETE || $this->mappingObject->getMappedEntityId();
  10. }
Add Comment
Please, Sign In to add comment