Skip to content

Commit 650e20d

Browse files
authored
Add expressionToString to getOtherClauses (#451)
1 parent 3228a18 commit 650e20d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/CacheKey.php

+5
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ protected function getOtherClauses(array $where) : string
210210
$value .= $this->getValuesClause($where);
211211

212212
$column = "";
213+
214+
if (data_get($where, "column") instanceof Expression) {
215+
$where["column"] = $this->expressionToString(data_get($where, "column"));
216+
}
217+
213218
$column .= isset($where["column"]) ? $where["column"] : "";
214219
$column .= isset($where["columns"]) ? implode("-", $where["columns"]) : "";
215220

0 commit comments

Comments
 (0)