/** * @return \yii\db\ActiveQuery */ public function getProductImages() { return $this->hasMany(ProductImage::className(), ['product_id' => 'id']); }