public static function findByClient(IUserAccount $client) { return UserAccount::find()->with('user')->where(['provider' => $client->id, 'client_id' => $client->getUserId()])->one(); }