hasCriteria example

return $entities;
    }

    /** * Function to loop through all operations and provide some special handling for wildcard operations, or other short hands * * @param SyncOperation[] $operations */
    private function loopOperations(array $operations, Context $context): void
    {
        foreach ($operations as $operation) {
            if ($operation->getAction() === SyncOperation::ACTION_DELETE && $operation->hasCriteria()) {
                $this->handleCriteriaDelete($operation$context);

                continue;
            }

            if ($operation->getAction() === SyncOperation::ACTION_UPSERT) {
                $resolved = $this->syncFkResolver->resolve($operation->getEntity()$operation->getPayload());

                $operation->replacePayload($resolved);
            }
        }
    }
Home | Imprint | This part of the site doesn't use cookies.