Exemple #1
0
 protected function findTransaction($id)
 {
     if (($model = EbayTransaction::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getEbayTransactions()
 {
     return $this->hasMany(EbayTransaction::className(), ['ebay_order_id' => 'id']);
 }