protected function getUpdateObjectIdentitySql($pk, array $changes)
    {
        if (0 === count($changes)) {
            throw new \InvalidArgumentException('There are no changes.');
        }

        return sprintf(
            'UPDATE %s SET %s WHERE id = %d',
            $this->options['oid_table_name'],
            implode(', ', $changes),
            $pk
        );
    }
protected function getUpdateObjectIdentitySql($pk, array $changes)
    {
        if (0 === count($changes)) {
            throw new \InvalidArgumentException('There are no changes.');
        }

        return sprintf(
            'UPDATE %s SET %s WHERE id = %d',
            $this->options['oid_table_name'],
            implode(', ', $changes),
            $pk
        );
    }
protected function getUpdateObjectIdentitySql ( $ pk , array $ changes ) { if ( 0 === count ( $ changes ) ) { throw new \ InvalidArgumentException ( 'There are no changes.' ) ; } return sprintf ( 'UPDATE %s SET %s WHERE id = %d' , $ this -> options [ 'oid_table_name' ] , implode ( ', ' , $ changes ) , $ pk ) ; }
Constructs the SQL for updating an object identity.

@param int   $pk
@param array $changes

@throws \InvalidArgumentException

@return string
Constructs the SQL for updating an object identity .