From 1259b0dac6524b6fb264c5d99c3d95ed4bd0a95c Mon Sep 17 00:00:00 2001 From: Serge Bezborodov Date: Thu, 21 Nov 2013 12:53:00 +0200 Subject: [PATCH] fix rbac select statement --- framework/yii/rbac/DbManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/rbac/DbManager.php b/framework/yii/rbac/DbManager.php index 0e1f8cc..5bbc7ab 100644 --- a/framework/yii/rbac/DbManager.php +++ b/framework/yii/rbac/DbManager.php @@ -392,7 +392,7 @@ class DbManager extends Manager ->where(['user_id' => $userId, 'name' => new Expression('item_name')]) ->createCommand($this->db); } else { - $command = $query->select('name', 'type', 'description', 't1.biz_rule', 't1.data') + $command = $query->select(['name', 'type', 'description', 't1.biz_rule', 't1.data']) ->from([$this->itemTable . ' t1', $this->assignmentTable . ' t2']) ->where(['user_id' => $userId, 'type' => $type, 'name' => new Expression('item_name')]) ->createCommand($this->db);