@@ 53-60 (lines=8) @@ | ||
50 | * @param array $identityValues |
|
51 | * @return null|object |
|
52 | */ |
|
53 | protected function findEntityByIdentityValues($entityName, array $identityValues) |
|
54 | { |
|
55 | if (is_a($entityName, 'OroCRM\Bundle\MagentoBundle\Entity\IntegrationAwareInterface', true)) { |
|
56 | $identityValues['channel'] = $this->context->getOption('channel'); |
|
57 | } |
|
58 | ||
59 | return parent::findEntityByIdentityValues($entityName, $identityValues); |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * Combine channel with identity values for entity search on local new entities storage |
|
@@ 74-81 (lines=8) @@ | ||
71 | * |
|
72 | * @return array|null |
|
73 | */ |
|
74 | protected function combineIdentityValues($entity, $entityClass, array $searchContext) |
|
75 | { |
|
76 | if (is_a($entityClass, 'OroCRM\Bundle\MagentoBundle\Entity\IntegrationAwareInterface', true)) { |
|
77 | $searchContext['channel'] = $this->context->getOption('channel'); |
|
78 | } |
|
79 | ||
80 | return parent::combineIdentityValues($entity, $entityClass, $searchContext); |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * @return PropertyAccessor |