Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in Optimistic Locking (X_TIMESTAMP) header handling to SugarBean Endpoints #3

Open
MichaelJ2324 opened this issue Feb 5, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@MichaelJ2324
Copy link
Contributor

It would be nice to enable Optimistic Locking on a Model for some use cases.

For example, one might be able to easily enable it on a Module

$client = new SugarApi();
$account = $client->module('Accounts', '12345');
$account->enableOptimisticLocking();
$account->retrieve();

$account['account_type'] = 'Test';
//Retrieve would handle setting date_modified 
//Save would handle configuring Request with X_TIMESTAMP header with date_modified value on object
$account->save();
@MichaelJ2324 MichaelJ2324 added the enhancement New feature or request label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant