Esempio n. 1
0
 public function getService()
 {
     return $this->hasOne(Service::className(), ['id' => 'serviceId']);
 }
Esempio n. 2
0
 public function getServices()
 {
     return $this->hasMany(Service::className(), ['id' => 'parentId']);
 }