Skip to content

Commit

Permalink
Исправление CompositeKey.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bezumkin committed Aug 28, 2023
1 parent 2875823 commit fce9782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/Models/Traits/CompositeKey.php
Expand Up @@ -57,8 +57,8 @@ public static function find($ids, $columns = ['*'])
{
$me = new self();
$query = $me->newQuery();
foreach ($me->getKeyName() as $key) {
$query->where($key, '=', $ids[$key]);
foreach ($me->getKey() as $key) {
$query->where($key, $ids[$key]);
}

return $query->first($columns);
Expand Down

0 comments on commit fce9782

Please sign in to comment.