Commit adfbc5b5 authored by Dan's avatar Dan Committed by Steve Porter

fix: find() now uses getKeyName() for primary key

parent a1c69ee2
......@@ -198,7 +198,7 @@ class Builder extends BaseBuilder
*/
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