Example #1
0
 public function getClientUsers()
 {
     return $this->hasMany(ClientUsers::className(), ['id' => 'client_id'])->via('clientBindings');
 }
Example #2
0
 public function getClient()
 {
     return $this->hasOne(ClientUsers::className(), ['id' => 'client_id']);
 }
 /**
  * Provides json response for select2 plugin
  */
 public function actionGetSelectionById()
 {
     self::selectionById(ClientUsers::className(), 'name');
 }