Skip to content

Bypass accessor on increment/decrement #52697

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

Closed
wants to merge 3 commits into from

Conversation

grimmdude
Copy link

When incrementing/decrementing database values using increment()/decrement() it isn't desirable to execute an accessor that may exist on the column, as it's not really being "accessed".

The intention with this PR is to bypass any accessors to avoid unintended side effects.

#52694

@Jubeki
Copy link
Contributor

Jubeki commented Sep 8, 2024

This seems like a breaking change for people expecting this behaviour. Also not sure if it is wanted, to bypass the accessor.

I recommend targeting master instead of 11.x

@grimmdude grimmdude changed the base branch from 11.x to master September 8, 2024 16:58
@grimmdude grimmdude changed the base branch from master to 11.x September 8, 2024 16:58
@grimmdude
Copy link
Author

This seems like a breaking change for people expecting this behaviour. Also not sure if it is wanted, to bypass the accessor.

I recommend targeting master instead of 11.x

Thanks, will reopen new PR targeting master.

@grimmdude grimmdude closed this Sep 8, 2024
@grimmdude grimmdude deleted the increment_bypass_accessor branch September 8, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants