protected function addChange($addressBookId, $objectUri, $operation)
    {
        $stmt = $this->pdo->prepare('INSERT INTO '.$this->addressBookChangesTableName.' (uri, synctoken, addressbookid, operation) SELECT ?, synctoken, ?, ? FROM '.$this->addressBooksTableName.' WHERE id = ?');
        $stmt->execute([
            $objectUri,
            $addressBookId,
            $operation,
            $addressBookId,
        ]);
        $stmt = $this->pdo->prepare('UPDATE '.$this->addressBooksTableName.' SET synctoken = synctoken + 1 WHERE id = ?');
        $stmt->execute([
            $addressBookId,
        ]);
    }
protected function addChange($addressBookId, $objectUri, $operation)
    {
        $stmt = $this->pdo->prepare('INSERT INTO '.$this->addressBookChangesTableName.' (uri, synctoken, addressbookid, operation) SELECT ?, synctoken, ?, ? FROM '.$this->addressBooksTableName.' WHERE id = ?');
        $stmt->execute([
            $objectUri,
            $addressBookId,
            $operation,
            $addressBookId,
        ]);
        $stmt = $this->pdo->prepare('UPDATE '.$this->addressBooksTableName.' SET synctoken = synctoken + 1 WHERE id = ?');
        $stmt->execute([
            $addressBookId,
        ]);
    }
protected function addChange ( $ addressBookId , $ objectUri , $ operation ) { $ stmt = $ this -> pdo -> prepare ( 'INSERT INTO ' . $ this -> addressBookChangesTableName . ' (uri, synctoken, addressbookid, operation) SELECT ?, synctoken, ?, ? FROM ' . $ this -> addressBooksTableName . ' WHERE id = ?' ) ; $ stmt -> execute ( [ $ objectUri , $ addressBookId , $ operation , $ addressBookId , ] ) ; $ stmt = $ this -> pdo -> prepare ( 'UPDATE ' . $ this -> addressBooksTableName . ' SET synctoken = synctoken + 1 WHERE id = ?' ) ; $ stmt -> execute ( [ $ addressBookId , ] ) ; }
Adds a change record to the addressbookchanges table.

@param mixed  $addressBookId
@param string $objectUri
@param int    $operation     1 = add, 2 = modify, 3 = delete
Adds a change record to the addressbookchanges table .