Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOptionsRelation()
 {
     return $this->hasMany(ProductOption::className(), ['id' => 'option_id'])->viaTable('{{%product_type_options}}', ['product_type_id' => 'id']);
 }