public function getClientUsers() { return $this->hasMany(ClientUsers::className(), ['id' => 'client_id'])->via('clientBindings'); }
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'); }