Skip to content

Commit

Permalink
Remove extra check link
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed May 27, 2024
1 parent 6bea567 commit 1c1a1f3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ActiveRelationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,12 +544,6 @@ private function prefixKeyColumns(array $attributes): array
*/
protected function filterByModels(array $models): void
{
if (empty($this->link)) {
$this->emulateExecution();
$this->andWhere('1=0');
return;
}

$attributes = array_keys($this->link);
$attributes = $this->prefixKeyColumns($attributes);

Expand Down

0 comments on commit 1c1a1f3

Please sign in to comment.