public function revokeAll($userId) { if (empty($userId)) { return false; } return $this->db->createCommand()->delete($this->assignmentTable, ['user_id' => (string) $userId])->execute() > 0; }
public function revokeAll($userId) { if ($this->cache !== null) { $this->cache->delete($this->assignmentsCachePrefix . '_' . $userId); } parent::revokeAll($userId); }