Skip to content

Commit

Permalink
fix bug isSingleResult
Browse files Browse the repository at this point in the history
  • Loading branch information
arif-rh committed Jun 7, 2020
1 parent e0dfd2c commit 54e1c82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Models/DynaModelTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,8 @@ protected function attachRelationData($resultData, $childData, $fieldAlias, $rel
*/
protected function isSingleResult($resultData = null):bool
{
$resultData = (array) $resultData;

return isset($resultData['id']) && (is_numeric($resultData['id']) || is_string($resultData['id']));
}
/**
Expand Down

0 comments on commit 54e1c82

Please sign in to comment.