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