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

Improve explain functionality #189

Merged
merged 4 commits into from
Sep 19, 2017
Merged

Conversation

robwil
Copy link

@robwil robwil commented Aug 29, 2017

Addresses the issues outlined in issue #188

@@ -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 === [])) {
Copy link
Owner

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.

Rob Williams added 2 commits August 30, 2017 12:11
…f empty projection array based on CR comment
…The important assertion is the nReturned anyway
@alcaeus
Copy link
Owner

alcaeus commented Aug 31, 2017

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!

@robwil
Copy link
Author

robwil commented Aug 31, 2017

No worries!

@alcaeus alcaeus added this to the 1.1.3 milestone Sep 19, 2017
@alcaeus alcaeus merged commit 9eef0db into alcaeus:master Sep 19, 2017
@alcaeus
Copy link
Owner

alcaeus commented Sep 19, 2017

Thanks @robwil!

@alcaeus alcaeus added the bug label Sep 19, 2017
@robwil
Copy link
Author

robwil commented Sep 19, 2017

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!

@alcaeus
Copy link
Owner

alcaeus commented Sep 19, 2017

Thank you for those kind words and your contributions, they are very much appreciated! 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants