コード例 #1
0
ファイル: Loyalty.php プロジェクト: index0h/innovecs-test.pro
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getChecks()
 {
     return $this->hasMany(Check::className(), ['id' => 'checkId'])->viaTable('check_has_loyalty', ['loyaltyId' => 'id']);
 }
コード例 #2
0
ファイル: Product.php プロジェクト: index0h/innovecs-test.pro
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getChecks()
 {
     return $this->hasMany(Check::className(), ['id' => 'checkId'])->viaTable('check_has_product', ['productId' => 'id']);
 }