简单示例yii 的where使用方法:

$where = ['post_id'=>$postId];
//$list = ForumThreadPost::find()->where($where)->all();
$list = ForumThreadPost::find()->where($where)->one();
$list->post_num += 1;
$list->save();

 

相关文章: