controllers/CurrencyExchangeOrderController.php
/**
     * Finds the CurrencyExchangeOrder model based on its primary key value.
     * If the model is not found, a 404 HTTP exception will be thrown.
     * @param integer $id
     * @return CurrencyExchangeOrder the loaded model
     * @throws NotFoundHttpException if the model cannot be found
     */
Finds the CurrencyExchangeOrder model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.
@param integer $id
@return CurrencyExchangeOrder the loaded model
@throws NotFoundHttpException if the model cannot be found
Finds the CurrencyExchangeOrder model based on its primary key value . If the model is not found a 404 HTTP exception will be thrown . @param integer $id @return CurrencyExchangeOrder the loaded model @throws NotFoundHttpException if the model cannot be found
protected function findModel(int $id): CurrencyExchangeOrder
    {
        $model = CurrencyExchangeOrder::findOne($id);
        if ($model !== null && $model->user_id == Yii::$app->user->identity->id) {
            return $model;
        }
        throw new NotFoundHttpException('The requested page does not exist.');
    }
protected function findModel ( int $ id ) : CurrencyExchangeOrder { $ model = CurrencyExchangeOrder :: findOne ( $ id ) ; if ( $ model !== null && $ model -> user_id == Yii :: $ app -> user -> identity -> id ) { return $ model ; } throw new NotFoundHttpException ( 'The requested page does not exist.' ) ; }
Finds the CurrencyExchangeOrder model based on its primary key value.
Finds the CurrencyExchangeOrder model based on its primary key value .