From d9d4cc4c7be8db5083ba583c9b1a48c3bf98fee6 Mon Sep 17 00:00:00 2001 From: evgen-d Date: Tue, 30 Sep 2014 14:51:35 +0400 Subject: [PATCH] temp fix update with func --- Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Query.php b/Query.php index 9aafb6f..2d035c9 100644 --- a/Query.php +++ b/Query.php @@ -576,7 +576,7 @@ class Query extends Component implements QueryInterface protected function buildUpdate($collection, $columns) { return 'UPDATE ' . $collection . ' WITH ' - . Json::encode($columns) . ' IN ' + . (is_array($columns) ? Json::encode($columns) : $columns) . ' IN ' . $this->quoteCollectionName($collection); }