Skip to content

Commit 6439d0d

Browse files
committed
remove if statement
1 parent 2e85090 commit 6439d0d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/PowerJoinClause.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,7 @@ protected function useAliasInWhereBasicType(array $where): array
141141
return $where;
142142
}
143143

144-
if (Str::contains($where['column'], $table)) {
145-
// if joining the same table, only replace the correct table.key pair
146-
$where['column'] = str_replace($table.'.', $this->alias.'.', $where['column']);
147-
}
144+
$where['column'] = str_replace($table.'.', $this->alias.'.', $where['column']);
148145

149146
return $where;
150147
}

0 commit comments

Comments
 (0)