Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.27 KB

Upgrade.md

File metadata and controls

32 lines (24 loc) · 1.27 KB

Upgrade

0.x

Rework synchronization of taxon entities

The SynchronizeTaxonMessage as well as the TaxonMessageProducer has been refactored to support the synchronization of multiple independent taxon entities. Previously only the root node could be synchronized, which resulted in always synchronizing the complete tree structure.

Sulu\Bundle\SyliusConsumerBundle\Message\SynchronizeTaxonMessage renamed to Sulu\Bundle\SyliusConsumerBundle\Message\SynchronizeTaxonsMessage

Futhermore the logic to automatically find the parent taxon of the tree in the TaxonMessageProducer has been removed. The producer now accepts an array of TaxonInterfaces. The service using the TaxonMessagePrducer now has to decide, which taxons are synchronized.

Before

// producer automatically searches the rootTaxon and synchronizes the complete tree
$taxonMessageProducer->synchronize($taxon);

After

// producer synchronizes only listed taxons, it is expected that required parent taxons
// either were already synchronized or are also listed in the array
$taxonMessageProducer->synchronize([$taxon1, $taxon2, $taxon3]);

Product attribute payload

The product attribute payload has changed. It is now stored in attributeValues and its content is slightly different.