Commit e80b3555 authored by Shakarim Sapa's avatar Shakarim Sapa

- Add filter updates

parent 89a7a38b
...@@ -91,7 +91,11 @@ class SearchCoContent extends CoContent ...@@ -91,7 +91,11 @@ class SearchCoContent extends CoContent
'updated_at' => $this->updated_at, 'updated_at' => $this->updated_at,
]); ]);
$query->andFilterWhere(['like', 'url', $this->lang->name]); $query->joinWith(['url' => function ($q) {
$q->where('co_content_lang.name LIKE "%' . $this->url . '%"');
}]);
// $query->andFilterWhere(['like', 'url', $this->url]);
return $dataProvider; return $dataProvider;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment