src/Phpforce/SoapClient/BulkSaver.php
public function save($record, $objectType, $matchField = null)
    {
        if ($matchField) {
            $this->addBulkUpsertRecord($record, $objectType, $matchField);
        } elseif (isset($record->Id) && null !== $record->Id) {
            $this->addBulkUpdateRecord($record, $objectType);
        } else {
            $this->addBulkCreateRecord($record, $objectType);
        }

        return $this;
    }
public function save($record, $objectType, $matchField = null)
    {
        if ($matchField) {
            $this->addBulkUpsertRecord($record, $objectType, $matchField);
        } elseif (isset($record->Id) && null !== $record->Id) {
            $this->addBulkUpdateRecord($record, $objectType);
        } else {
            $this->addBulkCreateRecord($record, $objectType);
        }

        return $this;
    }
public function save ( $ record , $ objectType , $ matchField = null ) { if ( $ matchField ) { $ this -> addBulkUpsertRecord ( $ record , $ objectType , $ matchField ) ; } elseif ( isset ( $ record -> Id ) && null !== $ record -> Id ) { $ this -> addBulkUpdateRecord ( $ record , $ objectType ) ; } else { $ this -> addBulkCreateRecord ( $ record , $ objectType ) ; } return $ this ; }
Save a record in bulk

@param mixed  $record
@param string $objectType The record type, e.g., Account
@param string $matchField Optional match field for upserts

@return BulkSaver
Save a record in bulk