-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Give different result from Resultset::delete() depending on success #12828
Give different result from Resultset::delete() depending on success #12828
Conversation
Update changelog also and add some simple test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update changelog, add test
I've added a message to the changelog but not sure if it's according to the standards that those messages should be. Secondly, I'm not completely sure how to properly create a test for this. Basically if any of the |
CHANGELOG.md
Outdated
@@ -22,6 +22,7 @@ | |||
- Fixed `Phalcon\Mvc\Micro:handle` to correctly handle `before` handlers [#10931](https://github.com/phalcon/cphalcon/pull/10931) | |||
- Fixed `Phalcon\Mvc\Micro:handle` to correctly handle `afterBinding` handlers | |||
- Added way to disable setters in `Phalcon\Mvc\Model::assign` by using `Phalcon\Mvc\Model::setup` or ini option | |||
- Made `Resultset::delete()` return `false` when any of the `Model::delete` calls fails [PR #12828](https://github.com/phalcon/cphalcon/pull/12828) fixing [issue #11133](https://github.com/phalcon/cphalcon/issues/11133) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for link ot pr, just only add issue like other changes aboves. Also without "issue"
About test - just return some random false in some of model::delete, then check if result returned by resultset->delete is false. |
Just updated CHANGELOG |
Thank you |
Hello!
Model::delete()
)In raising this pull request, I confirm the following (please check boxes):
Small description of change: When any
Model::delete()
fails the result bubbles to causeResultSet::delete()
to returnfalse
as well.Thanks