getElementIdentifier example

INSERT INTO `s_core_translations` (`objecttype`, `objectdata`, `objectkey`, `objectlanguage`, `dirty`) SELECT `objecttype`, `objectdata`, :objectKey as 'objectkey', `objectlanguage`, `dirty` FROM `s_core_translations` WHERE objectkey = :oldObjectKey AND `objecttype` = 'emotionElement' EOD;

        foreach ($emotion->getElements() as $el) {
            $key = $this->getElementIdentifier($el);
            $oldObjectKeys[$key] = $el->getId();
        }

        foreach ($clonedEmotion->getElements() as $el) {
            $key = $this->getElementIdentifier($el);

            Shopware()->Db()->executeQuery($sql[
                ':objectKey' => $el->getId(),
                ':oldObjectKey' => $oldObjectKeys[$key],
            ]);
        }
    }
Home | Imprint | This part of the site doesn't use cookies.