/**
  * @return \yii\db\ActiveQuery
  */
 public function getVariantsRelation()
 {
     return $this->hasMany(Variant::className(), ['entity_id' => 'id'])->where(['entity_type' => $this->getEntityType()]);
 }
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), ['entity_id' => Yii::t('app', 'Product'), 'sku' => Yii::t('app', 'Sku'), 'price' => Yii::t('app', 'Price')]);
 }