test

parent c06c80c7
...@@ -35,7 +35,7 @@ class PostController extends BaseController ...@@ -35,7 +35,7 @@ class PostController extends BaseController
public function actionTags() public function actionTags()
{ {
$models = Post::find()->joinWith('postTagAssigns')->where([ $models = Post::find()->joinWith('postTagAssigns')->where([
PostTagAssign::tableName().'.tag_id' => [2,5] PostTagAssign::tableName().'.tag_id' => [2,6]
]); ]);
foreach ($models as $model) foreach ($models as $model)
......
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