Exemple #1
0
 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()]]];
 }
Exemple #4
0
 public function getService()
 {
     return $this->hasMany(Service::className(), ['id' => 'service_id'])->via('companyServices');
 }