Transformer/ElasticaToModelTransformerCollection.php 1 location
|
@@ 94-107 (lines=14) @@
|
| 91 |
|
/** |
| 92 |
|
* {@inheritdoc} |
| 93 |
|
*/ |
| 94 |
|
public function hybridTransform(array $elasticaObjects) |
| 95 |
|
{ |
| 96 |
|
$objects = $this->transform($elasticaObjects); |
| 97 |
|
|
| 98 |
|
$result = []; |
| 99 |
|
for ($i = 0, $j = count($elasticaObjects); $i < $j; ++$i) { |
| 100 |
|
if (!isset($objects[$i])) { |
| 101 |
|
continue; |
| 102 |
|
} |
| 103 |
|
$result[] = new HybridResult($elasticaObjects[$i], $objects[$i]); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
return $result; |
| 107 |
|
} |
| 108 |
|
} |
| 109 |
|
|
Propel/ElasticaToModelTransformer.php 1 location
|
@@ 99-109 (lines=11) @@
|
| 96 |
|
/** |
| 97 |
|
* {@inheritdoc} |
| 98 |
|
*/ |
| 99 |
|
public function hybridTransform(array $elasticaObjects) |
| 100 |
|
{ |
| 101 |
|
$objects = $this->transform($elasticaObjects); |
| 102 |
|
|
| 103 |
|
$result = []; |
| 104 |
|
for ($i = 0, $j = count($elasticaObjects); $i < $j; ++$i) { |
| 105 |
|
$result[] = new HybridResult($elasticaObjects[$i], $objects[$i]); |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
return $result; |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
/** |
| 112 |
|
* {@inheritdoc} |