public function MappedObjectStorage::setForcePull in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/src/MappedObjectStorage.php \Drupal\salesforce_mapping\MappedObjectStorage::setForcePull()
- 5.0.x modules/salesforce_mapping/src/MappedObjectStorage.php \Drupal\salesforce_mapping\MappedObjectStorage::setForcePull()
Set "force_pull" column to TRUE for mapped objects of the given mapping.
Parameters
\Drupal\salesforce_mapping\Entity\SalesforceMappingInterface $mapping: Mapping.
Return value
$this
File
- modules/
salesforce_mapping/ src/ MappedObjectStorage.php, line 125
Class
- MappedObjectStorage
- Class MappedObjectStorage.
Namespace
Drupal\salesforce_mappingCode
public function setForcePull(SalesforceMappingInterface $mapping) {
$this->database
->update($this->baseTable)
->condition('salesforce_mapping', $mapping
->id())
->fields([
'force_pull' => 1,
])
->execute();
return $this;
}