Skip to content

Update without returning#2965

Merged
tyt2y3 merged 2 commits into
SeaQL:masterfrom
Huliiiiii:update-without-returning
Jun 16, 2026
Merged

Update without returning#2965
tyt2y3 merged 2 commits into
SeaQL:masterfrom
Huliiiiii:update-without-returning

Conversation

@Huliiiiii

Copy link
Copy Markdown
Member

I need this method for my use case.

The only limitation is that it doesn’t trigger after_save.

@Huliiiiii Huliiiiii force-pushed the update-without-returning branch from fb3e4d9 to aa9d87d Compare February 22, 2026 16:58
Huliiiiii and others added 2 commits June 16, 2026 19:16
ActiveModelTrait::update_without_returning called the non-existent
Self::Entity::update_without_returning(am); use Self::Entity::update(am),
whose UpdateOne gains the new exec_without_returning.

Add integration tests covering a successful update, RecordNotUpdated on a
non-existent row, before_save running, and after_save being skipped.
@tyt2y3 tyt2y3 force-pushed the update-without-returning branch from aa9d87d to 49b7b50 Compare June 16, 2026 19:22
@tyt2y3 tyt2y3 merged commit 85af367 into SeaQL:master Jun 16, 2026
39 checks passed
@Huliiiiii Huliiiiii deleted the update-without-returning branch June 16, 2026 22:24
@github-actions

Copy link
Copy Markdown

🎉 Released In 2.0.0-rc.41 🎉

Huge thanks for the contribution!
This feature has now been released, so it's a great time to upgrade.
Show some love with a ⭐ on our repo, every star counts!

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