# UPGRADE FROM `v1.11.11` TO `v1.11.12` 1. All entities and their relationships have a default order by identifier if no order is specified. You can disable this behavior by setting the `sylius_core.order_by_identifier` parameter to `false`: ```yaml sylius_core: order_by_identifier: false ``` # UPGRADE FROM `v1.11.7` TO `v1.11.8` 1. Cloning `Sylius\Component\Order\Model\Adjustment` resets values of fields `id`, `createdAt` and `updatedAt`. # UPGRADE FROM `v1.11.6` TO `v1.11.7` 1. Method `Sylius\Component\Channel\Repository\ChannelRepository::findOneByHostname` has become deprecated, use `Sylius\Component\Channel\Repository\ChannelRepository::findOneEnabledByHostname` instead. Simultaneously with this change `Sylius\Component\Channel\Context\RequestBased\HostnameBasedRequestResolver::findChannel` will start selecting only a channel from a range of enabled channels. 2. The `code` field was removed from OrderItem serialization (in `src/Sylius/Bundle/ApiBundle/Resources/config/serialization/OrderItem.xml`) as such field does not exist. Please, add it in your code base if you need it. # UPGRADE FROM `v1.11.2` TO `v1.11.3` 1. Order Processors' priorities have changed and `sylius.order_processing.order_prices_recalculator` has now a higher priority than `sylius.order_processing.order_shipment_processor`. Previous priorities: ```shell sylius.order_processing.order_adjustments_clearer 60 Sylius\Component\Core\OrderProcessing\OrderAdjustmentsClearer sylius.order_processing.order_shipment_processor 50 Sylius\Component\Core\OrderProcessing\OrderShipmentProcessor sylius.order_processing.order_prices_recalculator 40 Sylius\Component\Core\OrderProcessing\OrderPricesRecalculator ... ``` Current priorities: ```shell sylius.order_processing.order_adjustments_clearer 60 Sylius\Component\Core\OrderProcessing\OrderAdjustmentsClearer sylius.order_processing.order_prices_recalculator 50 Sylius\Component\Core\OrderProcessing\OrderPricesRecalculator sylius.order_processing.order_shipment_processor 40 Sylius\Component\Core\OrderProcessing\OrderShipmentProcessor ... ``` If you rely on previous priorities, you can bring them back by setting flag ``sylius_core.process_shipments_before_recalculating_prices`` to ``true`` in ``config/packages/_sylius.yaml``: ```yaml sylius_core: process_shipments_before_recalculating_prices: true ``` However, it is not recommended because new priorities fix [invalid estimated shipping costs](https://github.com/Sylius/Sylius/pull/13769). # UPGRADE FROM `v1.10.X` TO `v1.11.0` ## Preconditions ### PHP 8.0 support Sylius v1.11 comes with bump of minimal dependencies of PHP to v8.0. We strongly advice to make upgrade process step by step, so it is highly recommended updating your PHP version being still on Sylius v1.10, as it is supporting both PHP7.4 and PHP8.0. After ensuring, that previous step succeed, you may move forward to the Sylius v1.11 update. ## Main update ### "pagerfanta/pagerfanta" semantic_ui_translated removed The `pagination.html.twig` has been changed to use the Twig view. There are differences in the markup between the PHP template and the Twig template. The wrapping container from 2.x branch of Pagerfanta in the PHP template was: ```html