Ejemplo n.º 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProducts()
 {
     return $this->hasMany(MiProducts::className(), ['product_id' => 'product_id'])->viaTable('mi_product_tag', ['tag_id' => 'tag_id']);
 }
Ejemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMiProducts()
 {
     return $this->hasMany(MiProducts::className(), ['manufacturer_id' => 'manufacturer_id']);
 }
Ejemplo n.º 3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMiProducts()
 {
     return $this->hasMany(MiProducts::className(), ['size_id' => 'size_id']);
 }
Ejemplo n.º 4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProduct()
 {
     return $this->hasOne(MiProducts::className(), ['product_id' => 'product_id']);
 }