Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBundles()
 {
     return $this->hasMany(Bundle::className(), ['bundle_variant' => 'id']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBundles()
 {
     return $this->hasMany(Bundle::className(), ['product_id' => 'id']);
 }