| Conditions | 9 |
| Paths | 12 |
| Total Lines | 38 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 3 | Features | 0 |
| 1 | <?php |
||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | protected function findEntityByIdentityValues($entityName, array $identityValues) |
||
| 35 | { |
||
| 36 | if (is_a($entityName, 'OroCRM\Bundle\MagentoBundle\Entity\IntegrationAwareInterface', true)) { |
||
| 37 | $identityValues['channel'] = $this->context->getOption('channel'); |
||
| 38 | } |
||
| 39 | |||
| 40 | return parent::findEntityByIdentityValues($entityName, $identityValues); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return PropertyAccessor |
||
| 45 | */ |
||
| 46 | protected function getPropertyAccessor() |
||
| 47 | { |
||
| 48 | if (!$this->propertyAccessor) { |
||
| 49 | $this->propertyAccessor = PropertyAccess::createPropertyAccessor(); |
||
| 50 | } |
||
| 51 | return $this->propertyAccessor; |
||
| 52 | } |
||
| 53 | } |
||
| 54 |