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