コード例 #1
0
 /**
  * Provides json response for select2 plugin
  */
 public function actionGetSelectionById()
 {
     self::selectionById(ClientBeacons::className(), 'name');
 }
コード例 #2
0
ファイル: Beacons.php プロジェクト: DezMonT765/beacon-cms
 public function getClientBeacons()
 {
     return $this->hasMany(ClientBeacons::className(), ['beacon_id' => 'id']);
 }