Skip to content

Commit

Permalink
- added non proxy class of the Marello Product Unit as without this i…
Browse files Browse the repository at this point in the history
…t can cause issues when the 'normal' class is used to send templates instead of the Proxy class of the product unit
  • Loading branch information
24198 committed Aug 7, 2020
1 parent ad177b0 commit d0d640d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

namespace Marello\Bundle\ProductBundle\Twig\Provider;

use Proxies\__CG__\Extend\Entity\EV_Marello_Product_Unit;
use Extend\Entity\EV_Marello_Product_Unit;
use Proxies\__CG__\Extend\Entity\EV_Marello_Product_Unit as PROX_EV_Marello_Product_Unit;
use Oro\Bundle\EntityBundle\Twig\Sandbox\EntityVariablesProviderInterface;

class ProductUnitVariablesProvider implements EntityVariablesProviderInterface
Expand All @@ -24,6 +25,10 @@ public function getVariableGetters(): array
EV_Marello_Product_Unit::class => [
'name' => 'getName',
'id' => 'getId'
],
PROX_EV_Marello_Product_Unit::class => [
'name' => 'getName',
'id' => 'getId'
]
];
}
Expand Down

0 comments on commit d0d640d

Please sign in to comment.