Skip to content

Commit

Permalink
Added default value for mode in before plugin (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmeijer97 authored May 12, 2023
1 parent 9ea43ac commit ca09d3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Plugin/Helper/Import/Entities.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace JustBetter\AkeneoBundle\Plugin\Helper\Import;

use Magento\Framework\DB\Adapter\AdapterInterface;
use Magento\Store\Model\ScopeInterface as scope;
use Akeneo\Connector\Helper\Store as StoreHelper;
use Magento\Framework\App\Config\ScopeConfigInterface;
Expand Down Expand Up @@ -39,7 +40,7 @@ public function afterFormatMediaName($subject, $result)
* @param $mode
* @return array
*/
public function beforesetValues($subject, $jobCode, $entityTable, $data, $entityTypeId, $storeId, $mode)
public function beforesetValues($subject, $jobCode, $entityTable, $data, $entityTypeId, $storeId, $mode = AdapterInterface::INSERT_ON_DUPLICATE)
{
$additonalTypes = $this->attributeHelper->getAdditionalTypes();

Expand Down

0 comments on commit ca09d3c

Please sign in to comment.