Skip to content

Commit

Permalink
Add expressionToString to getOtherClauses (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
padre committed Dec 23, 2023
1 parent 3228a18 commit 650e20d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CacheKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ protected function getOtherClauses(array $where) : string
$value .= $this->getValuesClause($where);

$column = "";

if (data_get($where, "column") instanceof Expression) {
$where["column"] = $this->expressionToString(data_get($where, "column"));
}

$column .= isset($where["column"]) ? $where["column"] : "";
$column .= isset($where["columns"]) ? implode("-", $where["columns"]) : "";

Expand Down

0 comments on commit 650e20d

Please sign in to comment.