From 2cbab915424c8204a769539593a5ba6932e0a7e4 Mon Sep 17 00:00:00 2001 From: stes Date: Thu, 31 Aug 2017 14:51:27 +0300 Subject: [PATCH] search in blog, comments --- models/CommentModelSearch.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/models/CommentModelSearch.php b/models/CommentModelSearch.php index 06cf885..2eec575 100755 --- a/models/CommentModelSearch.php +++ b/models/CommentModelSearch.php @@ -142,7 +142,7 @@ // grid filtering conditions $query->andFilterWhere( [ - 'id' => $this->id, + 'artbox_comment.id' => $this->id, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, 'deleted_at' => $this->deleted_at, @@ -156,42 +156,42 @@ $query->andFilterWhere( [ 'like', - 'text', + 'artbox_comment.text', $this->text, ] ) ->andFilterWhere( [ 'like', - 'username', + 'artbox_comment.username', $this->username, ] ) ->andFilterWhere( [ 'like', - 'email', + 'artbox_comment.email', $this->email, ] ) ->andFilterWhere( [ 'like', - 'ip', + 'artbox_comment.ip', $this->ip, ] ) ->andFilterWhere( [ 'like', - 'entity', + 'artbox_comment.entity', $this->entity, ] ) ->andFilterWhere( [ 'like', - 'info', + 'artbox_comment.info', $this->info, ] ) -- libgit2 0.21.4