From 791384c8d9f34f6a3a654693caf3a64f239cfa81 Mon Sep 17 00:00:00 2001 From: dmitriy Date: Thu, 12 May 2016 10:47:24 +0300 Subject: [PATCH] method return array --- src/propertyStorage/EAV.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propertyStorage/EAV.php b/src/propertyStorage/EAV.php index dc663de..c157eb0 100644 --- a/src/propertyStorage/EAV.php +++ b/src/propertyStorage/EAV.php @@ -190,7 +190,7 @@ private function saveModelPropertyRow(ActiveRecord $model, Property $propertyMod $key = $propertyModel->key; $values = (array) $model->$key; if (count($values) === 0) { - return true; + return []; } $valueField = static::dataTypeToEavColumn($propertyModel->data_type);