writeDeleteViolationExceptions example

if (isset($channel['deletions']) && !$this->validDeleteCase($channel)) {
                $deletions[$id] = $channel['current_default'];
            }

            if (isset($channel['updates']) && !$this->validUpdateCase($channel)) {
                $updates[$id] = $channel['updates'];
            }
        }

        $this->writeInsertViolationExceptions($inserts$event);
        $this->writeDuplicateViolationExceptions($duplicates$event);
        $this->writeDeleteViolationExceptions($deletions$event);
        $this->writeUpdateViolationExceptions($updates$event);
    }

    /** * @param array<string, mixed> $channel */
    private function validInsertCase(array $channel): bool
    {
        return empty($channel['new_default'])
            || \in_array($channel['new_default']$channel['inserts'], true);
    }

    
Home | Imprint | This part of the site doesn't use cookies.