Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOptionValuesRelation()
 {
     return $this->hasMany(OptionValue::className(), ['option_id' => 'id']);
 }
Exemple #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOptionValuesRelation()
 {
     return $this->hasMany(OptionValue::className(), ['id' => 'option_value_id'])->viaTable('{{%variant_option_values}}', ['variant_id' => 'id']);
 }