Пример #1
0
 public function getProducts()
 {
     return $this->hasMany(Products::className(), ['catalog_id' => 'catalog_id']);
 }
Пример #2
0
 public function actions()
 {
     return ['galleryApi' => ['class' => GalleryManagerAction::className(), 'types' => ['products' => Products::className()]]];
 }