You are here

public function MappedObjectStorage::setForcePull in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/MappedObjectStorage.php \Drupal\salesforce_mapping\MappedObjectStorage::setForcePull()
  2. 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 171

Class

MappedObjectStorage
Class MappedObjectStorage.

Namespace

Drupal\salesforce_mapping

Code

public function setForcePull(SalesforceMappingInterface $mapping) {
  $this->database
    ->update($this->baseTable)
    ->condition('salesforce_mapping', $mapping
    ->id())
    ->fields([
    'force_pull' => 1,
  ])
    ->execute();
  return $this;
}