We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df3ebde + adfbc5b commit 5d55933Copy full SHA for 5d55933
src/Jenssegers/Mongodb/Query/Builder.php
@@ -198,7 +198,7 @@ public function hint($index)
198
*/
199
public function find($id, $columns = [])
200
{
201
- return $this->where('_id', '=', $this->convertKey($id))->first($columns);
+ return $this->where($this->getKeyName(), '=', $this->convertKey($id))->first($columns);
202
}
203
204
/**
0 commit comments