title | issue | author | author_email |
---|---|---|---|
Read runtime fields |
NEXT-24403 |
Oliver Skroblin |
- Added possibility to request runtime fields via DAL when using the partial data loading
- Added field dependency for runtime fields in the sales channel product definition
product::isNew
depends now onproduct::releaseDate
- all calculated price fields depends on
product::taxId
,product::unitId
,product::referenceUnit
,product::purchaseUnit
- Changed signature of
AbstractProductMaxPurchaseCalculator
to useEntity
instead ofProductEntity
- Changed signature of
PropertyGroupSorter
to useEntityCollection
instead ofPropertyGroupOptionCollection
You have to change the signature of your AbstractProductMaxPurchaseCalculator
implementation as follows:
// before
abstract public function calculate(SalesChannelProductEntity $product, SalesChannelContext $context): int;
// after
abstract public function calculate(Entity $product, SalesChannelContext $context): int;
You have to change the signature of your PropertyGroupSorter
implementation as follows:
// before
abstract public function sort(PropertyGroupOptionCollection $groupOptionCollection): PropertyGroupCollection;
// after
abstract public function sort(EntityCollection $options): PropertyGroupCollection;