Skip to content

Commit d0d640d

Browse files
committed
- added non proxy class of the Marello Product Unit as without this it can cause issues when the 'normal' class is used to send templates instead of the Proxy class of the product unit
1 parent ad177b0 commit d0d640d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Marello/Bundle/ProductBundle/Twig/Provider/ProductUnitVariablesProvider.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
namespace Marello\Bundle\ProductBundle\Twig\Provider;
44

5-
use Proxies\__CG__\Extend\Entity\EV_Marello_Product_Unit;
5+
use Extend\Entity\EV_Marello_Product_Unit;
6+
use Proxies\__CG__\Extend\Entity\EV_Marello_Product_Unit as PROX_EV_Marello_Product_Unit;
67
use Oro\Bundle\EntityBundle\Twig\Sandbox\EntityVariablesProviderInterface;
78

89
class ProductUnitVariablesProvider implements EntityVariablesProviderInterface
@@ -24,6 +25,10 @@ public function getVariableGetters(): array
2425
EV_Marello_Product_Unit::class => [
2526
'name' => 'getName',
2627
'id' => 'getId'
28+
],
29+
PROX_EV_Marello_Product_Unit::class => [
30+
'name' => 'getName',
31+
'id' => 'getId'
2732
]
2833
];
2934
}

0 commit comments

Comments
 (0)