Skip to content
Snippets Groups Projects
Commit 2bc09f9a authored by Aaron Bauman's avatar Aaron Bauman Committed by Aaron Bauman
Browse files

Issue #2949376 by aaronbauman: Update some documentation and add pull examples to sf subscriber

parent ed4ad8db
No related branches found
No related tags found
No related merge requests found
...@@ -154,7 +154,7 @@ class MappedObject extends RevisionableContentEntityBase implements MappedObject ...@@ -154,7 +154,7 @@ class MappedObject extends RevisionableContentEntityBase implements MappedObject
return; return;
} }
foreach ($vids_to_delete as $vid => $dummy) { foreach ($vids_to_delete as $vid => $dummy) {
$storage->deleteRevision($vid); $storage->deleteRevision($vid);
} }
return $this; return $this;
} }
...@@ -497,9 +497,7 @@ class MappedObject extends RevisionableContentEntityBase implements MappedObject ...@@ -497,9 +497,7 @@ class MappedObject extends RevisionableContentEntityBase implements MappedObject
} }
/** /**
* Get the mapped Salesforce record. * {@inheritdoc}
*
* @return \Drupal\salesforce\SObject
*/ */
public function getSalesforceRecord() { public function getSalesforceRecord() {
return $this->sf_object; return $this->sf_object;
......
...@@ -52,6 +52,13 @@ interface MappedObjectInterface extends EntityChangedInterface, RevisionLogInter ...@@ -52,6 +52,13 @@ interface MappedObjectInterface extends EntityChangedInterface, RevisionLogInter
public function getSalesforceUrl(); public function getSalesforceUrl();
/** /**
* Get the mapped Salesforce record.
*
* @return \Drupal\salesforce\SObject
*/
public function getSalesforceRecord();
/**
* @return string * @return string
* SFID * SFID
*/ */
......
...@@ -601,6 +601,7 @@ class SalesforceMapping extends ConfigEntityBase implements SalesforceMappingInt ...@@ -601,6 +601,7 @@ class SalesforceMapping extends ConfigEntityBase implements SalesforceMappingInt
if (!empty($this->pull_where_clause)) { if (!empty($this->pull_where_clause)) {
$soql->conditions[] = [$this->pull_where_clause]; $soql->conditions[] = [$this->pull_where_clause];
} }
$soql->order[$this->getPullTriggerDate()] = 'ASC';
return $soql; return $soql;
} }
......
...@@ -26,7 +26,7 @@ class SalesforceQueryEvent extends SalesforceBaseEvent { ...@@ -26,7 +26,7 @@ class SalesforceQueryEvent extends SalesforceBaseEvent {
} }
/** /**
* @return EntityInterface (from PushParams) * @return SelectQuery
*/ */
public function getQuery() { public function getQuery() {
return $this->query; return $this->query;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment