public function products() { return $this->productRepository->getByIds(array_keys($this->getData())); }
/** * */ public function actionIndex() { $this->render('index', ['dataProvider' => $this->favorite->products()]); }