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

Query returns only id not the fields specified. #97

Closed
alcaeus opened this issue Apr 13, 2016 · 3 comments
Closed

Query returns only id not the fields specified. #97

alcaeus opened this issue Apr 13, 2016 · 3 comments
Labels
Milestone

Comments

@alcaeus
Copy link
Owner

alcaeus commented Apr 13, 2016

Previously reported by @ccovey in mongodb/mongo-php-driver#294.

@alcaeus alcaeus added the bug label Apr 13, 2016
@alcaeus alcaeus added this to the 1.0.3 milestone Apr 13, 2016
alcaeus added a commit that referenced this issue Apr 13, 2016
@coudenysj
Copy link

Was this bug reintroduced in a newer version?

I'm currently using 1.0.7 and the field selection is only returning the _id.

@coudenysj
Copy link

I think the fix from d851097 should be used in the \MongoCollection::find() method too.

@alcaeus
Copy link
Owner Author

alcaeus commented Jan 9, 2017

Could you test the current 1.0.x branch? I made some changes to projection in #145 which would be released as 1.0.8 in the near future.

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

No branches or pull requests

2 participants