insertFlowTemplateData example


    public function update(Connection $connection): void
    {
        $mailTemplates = $this->getMailTemplates($connection);

        foreach ($mailTemplates as $mailTemplate) {
            if (!\is_string($mailTemplate['mailTemplateId'])) {
                $mailTemplate['mailTemplateId'] = null;
            }

            $this->insertFlowData($connection$mailTemplate);
            $this->insertFlowTemplateData($connection$mailTemplate);
        }

        $this->registerIndexer($connection, 'flow.indexer');
    }

    public function updateDestructive(Connection $connection): void
    {
    }

    /** * @param array{mailTemplateId: string|null, flowName: string, event: string} $mailTemplate * * @throws Exception */
Home | Imprint | This part of the site doesn't use cookies.