You are here

public function MappedObjectStorage::setForcePull in Salesforce Suite 5.0.x

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

Code

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