Skip to content

Commit

Permalink
Merge pull request #1189 from nowackipawel/patch-3
Browse files Browse the repository at this point in the history
$myModel->find(string "value-of-my-primary-key") #1188
  • Loading branch information
lonnieezell authored Aug 30, 2018
2 parents 85588b1 + 6e1335b commit 368d305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public function find($id = null)
->get();
$row = $row->getResult($this->tempReturnType);
}
elseif (is_numeric($id))
elseif (is_numeric($id) || is_string($id))
{
$row = $builder->where($this->table.'.'.$this->primaryKey, $id)
->get();
Expand Down

0 comments on commit 368d305

Please sign in to comment.