You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the LineItem entity is created statically without a factory class
Steps to reproduce
Add an extension of the LineItem class. When you class entityManager->flush(); it will fail because it is expected to be an instance of LineItem extension.
Possible Solution
Use a factory class.
The text was updated successfully, but these errors were encountered:
This PR was merged into the 1.5 branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | 1.5
| Bug fix? | kinda
| New feature? | kinda
| Related tickets | related #416
Commits
-------
69594b7 Add LineItemFactory
0942bc9 Use the new factory in line items converters
773ae98 [Maintenance] Update upgrade file
1f1a87f [Maintenance] Default null factories in line items converters
SyliusRefundPlugin version affected: 1.4.0
Description
In
RefundPlugin/src/Converter/LineItem/OrderItemUnitLineItemsConverter.php
Line 70 in 66c42d3
Steps to reproduce
Add an extension of the LineItem class. When you class entityManager->flush(); it will fail because it is expected to be an instance of LineItem extension.
Possible Solution
Use a factory class.
The text was updated successfully, but these errors were encountered: