andWhere(['id' => $id]); } public function whereClient(AuthClientInterface $client) { return $this->andWhere( [ 'provider' => $client->getId(), 'client_id' => $client->getUserAttributes()['id'] ] ); } public function whereCode($code) { return $this->andWhere(['code' => md5($code)]); } }