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