说明 返回数组方便做接口
$forum = Forum::find()->with('user')->where(['id' => $id, 'storeId' => $this->store->id])->asArray()->one();
需要with 和asArray配合使用
说明 返回数组方便做接口
$forum = Forum::find()->with('user')->where(['id' => $id, 'storeId' => $this->store->id])->asArray()->one();
需要with 和asArray配合使用