Skip to content

Commit db0675b

Browse files
authored
add expressionToString to getColumnClauses
1 parent 57a1b08 commit db0675b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/CacheKey.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ protected function getColumnClauses(array $where) : string
8080
if ($where["type"] !== "Column") {
8181
return "";
8282
}
83-
83+
if ($where["first"] instanceof Expression) {
84+
$where["first"] = $this->expressionToString($where["first"]);
85+
}
86+
8487
return "-{$where["boolean"]}_{$where["first"]}_{$where["operator"]}_{$where["second"]}";
8588
}
8689

0 commit comments

Comments
 (0)