Unverified Commit 5d55933a authored by Jens Segers's avatar Jens Segers Committed by GitHub

Merge pull request #1392 from DMNSteve/1354

fix: find() now uses getKeyName() for primary key
parents df3ebde0 adfbc5b5
...@@ -198,7 +198,7 @@ class Builder extends BaseBuilder ...@@ -198,7 +198,7 @@ class Builder extends BaseBuilder
*/ */
public function find($id, $columns = []) public function find($id, $columns = [])
{ {
return $this->where('_id', '=', $this->convertKey($id))->first($columns); return $this->where($this->getKeyName(), '=', $this->convertKey($id))->first($columns);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment