我正在使用 Yii 2.0 框架,谁能帮我在控制器中编写插入查询,我正在写这样的查询,这是一个正确的查询
$userId = \Yii::$app->user->identity->id;
$restId = \app\models\Restaurantbusiness::find()->select('restaurentID')->where(['userId' => $userId ])->one();
$restdetailId = $restId->restaurentID;
$restomenuID = Restomenu::find()->insert('restaurantBusiness_restaurentID')->where(['restaurantBusiness_restaurentID' => $restdetailId])->One();
请帮我编写正确的插入查询。提前致谢