Exemple #1
0
 public function getCatalog()
 {
     return $this->hasOne(Catalogs::className(), ['catalog_id' => 'catalog_id']);
 }
 public function actions()
 {
     return ['imgAttachApi' => ['class' => ImageAttachmentAction::className(), 'types' => ['catalogs' => Catalogs::className()]]];
 }