public function getServices() { return $this->hasMany(Service::className(), ['category_id' => 'id']); }
public function getService() { return $this->hasOne(Service::className(), ['id' => 'service_id']); }
public function actions() { return ['galleryApi' => ['class' => GalleryManagerAction::className(), 'types' => ['service' => Service::className()]]]; }
public function getService() { return $this->hasMany(Service::className(), ['id' => 'service_id'])->via('companyServices'); }