/**
  * Provides json response for select2 plugin
  */
 public function actionGetSelectionById()
 {
     self::selectionById(ClientBeacons::className(), 'name');
 }
Esempio n. 2
0
 public function getClientBeacons()
 {
     return $this->hasMany(ClientBeacons::className(), ['beacon_id' => 'id']);
 }