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 a9e6618 + c9813c6 commit 3238ec3Copy full SHA for 3238ec3
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