-
Notifications
You must be signed in to change notification settings - Fork 126
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
Improve explain functionality #189
Conversation
@@ -276,7 +276,7 @@ protected function getOptions($optionNames = null) | |||
$converter = 'convert' . ucfirst($option); | |||
$value = method_exists($this, $converter) ? $this->$converter() : $this->$option; | |||
|
|||
if ($value === null) { | |||
if ($value === null || ($option === 'projection' && $value === [])) { |
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.
Line 277 checks to see if a convert<Option>
method exists. This special case should be handled in a convertProjection
method.
…f empty projection array based on CR comment
…The important assertion is the nReturned anyway
Thanks! Just a quick heads up, I'm heading out for a vacation, so I won't be able to merge these until I'm back in a couple of weeks. Sorry for the delay! |
No worries! |
Thanks @robwil! |
Thanks for merging all of these @alcaeus . With these 4 fixes in place, all of our unit tests & integration tests passed on a very old legacy PHP application relying on the old mongo driver. Couldn't have done it so quickly without this adapter, so thanks for all your work on this! |
Thank you for those kind words and your contributions, they are very much appreciated! 🍻 |
Addresses the issues outlined in issue #188