src/OroCRM/Bundle/MagentoBundle/Provider/Iterator/CustomerSoapIterator.php 1 location
|
@@ 73-84 (lines=12) @@
|
| 70 |
|
/** |
| 71 |
|
* {@inheritdoc} |
| 72 |
|
*/ |
| 73 |
|
protected function getEntity($id) |
| 74 |
|
{ |
| 75 |
|
if (!array_key_exists($id, $this->entityBuffer)) { |
| 76 |
|
$this->logger->warning(sprintf('Entity with id "%s" was not found', $id)); |
| 77 |
|
|
| 78 |
|
return false; |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
$result = $this->entityBuffer[$id]; |
| 82 |
|
|
| 83 |
|
return ConverterUtils::objectToArray($result); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
/** |
| 87 |
|
* {@inheritdoc} |
src/OroCRM/Bundle/MagentoBundle/Provider/Iterator/OrderSoapIterator.php 1 location
|
@@ 82-95 (lines=14) @@
|
| 79 |
|
/** |
| 80 |
|
* {@inheritdoc} |
| 81 |
|
*/ |
| 82 |
|
protected function getEntity($id) |
| 83 |
|
{ |
| 84 |
|
$id = $id->{$this->getIdFieldName()}; |
| 85 |
|
|
| 86 |
|
if (!array_key_exists($id, $this->entityBuffer)) { |
| 87 |
|
$this->logger->warning(sprintf('Entity with id "%s" was not found', $id)); |
| 88 |
|
|
| 89 |
|
return false; |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
$result = $this->entityBuffer[$id]; |
| 93 |
|
|
| 94 |
|
return ConverterUtils::objectToArray($result); |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
/** |
| 98 |
|
* {@inheritdoc} |
src/OroCRM/Bundle/MagentoBundle/Provider/Iterator/AbstractBridgeIterator.php 1 location
|
@@ 104-115 (lines=12) @@
|
| 101 |
|
/** |
| 102 |
|
* {@inheritdoc} |
| 103 |
|
*/ |
| 104 |
|
protected function getEntity($id) |
| 105 |
|
{ |
| 106 |
|
if (!array_key_exists($id, $this->entityBuffer)) { |
| 107 |
|
$this->logger->warning(sprintf('Entity with id "%s" was not found', $id)); |
| 108 |
|
|
| 109 |
|
return false; |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
$result = $this->entityBuffer[$id]; |
| 113 |
|
|
| 114 |
|
return ConverterUtils::objectToArray($result); |
| 115 |
|
} |
| 116 |
|
} |
| 117 |
|
|