if (in_array('communityId', array_keys($fields))) {
            if (null === $fields['communityId']) {
                $event->setCommunity(null);
            } elseif ($community = $this->communityRepository->find($fields['communityId'])) {
                // set the new community