Skip to content

Commit 5a53f35

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 3f1c2fd commit 5a53f35

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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)