@@ -193,8 +193,7 @@ discard block |
||
193 | 193 | public function runQueryForList($connection, $parameter, $sql, $result, $delegate = null) |
194 | 194 | { |
195 | 195 | $registry = $this->getManager()->getTypeHandlers(); |
196 | - $list = $result instanceof \ArrayAccess ? $result : |
|
197 | - $this->_statement->createInstanceOfListClass($registry); |
|
196 | + $list = $result instanceof \ArrayAccess ? $result : $this->_statement->createInstanceOfListClass($registry); |
|
198 | 197 | $connection->setActive(true); |
199 | 198 | $reader = $sql->query(); |
200 | 199 | if ($delegate !== null) { |
@@ -267,8 +266,7 @@ discard block |
||
267 | 266 | foreach ($reader as $row) { |
268 | 267 | $obj = $this->applyResultMap($row); |
269 | 268 | $key = TPropertyAccess::get($obj, $keyProperty); |
270 | - $value = ($valueProperty === null) ? $obj : |
|
271 | - TPropertyAccess::get($obj, $valueProperty); |
|
269 | + $value = ($valueProperty === null) ? $obj : TPropertyAccess::get($obj, $valueProperty); |
|
272 | 270 | $param = new TResultSetMapItemParameter($key, $value, $parameter, $map); |
273 | 271 | $this->raiseRowDelegate($delegate, $param); |
274 | 272 | } |
@@ -276,8 +274,7 @@ discard block |
||
276 | 274 | foreach ($reader as $row) { |
277 | 275 | $obj = $this->applyResultMap($row); |
278 | 276 | $key = TPropertyAccess::get($obj, $keyProperty); |
279 | - $map[$key] = ($valueProperty === null) ? $obj : |
|
280 | - TPropertyAccess::get($obj, $valueProperty); |
|
277 | + $map[$key] = ($valueProperty === null) ? $obj : TPropertyAccess::get($obj, $valueProperty); |
|
281 | 278 | } |
282 | 279 | } |
283 | 280 | $this->onExecuteQuery($command); |