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

fix: beforeUpdate & beforeSave is not working #13

Merged
merged 1 commit into from
May 19, 2024

Conversation

Billtec
Copy link
Contributor

@Billtec Billtec commented May 19, 2024

The beforeUpdate & beforeSave event should be processed before the $this->dirty array is used to build the update sql, otherwise the data change described in beforeUpdate & beforeSave event will not be included in the sql.

refer to the #12 issue.

@n0nag0n n0nag0n merged commit d099872 into flightphp:master May 19, 2024
@n0nag0n
Copy link
Contributor

n0nag0n commented May 19, 2024

Thanks for catching this! I didn't realize there was a missing unit test, I'll add it in there. Flipping 100% coverage lies 😆

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