|
@@ 57-63 (lines=7) @@
|
| 54 |
|
->getCollectionsMap() |
| 55 |
|
->get($cid, false); |
| 56 |
|
|
| 57 |
|
if (false === $collection) { |
| 58 |
|
$data = $this->adapter->query($this, $this->getParameters()); |
| 59 |
|
$collection = $this->repository->getEntityMapper() |
| 60 |
|
->createFrom($data); |
| 61 |
|
$this->repository->getCollectionsMap()->set($cid, $collection); |
| 62 |
|
$this->updateIdentityMap($collection); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
return $collection; |
| 66 |
|
} |
|
@@ 83-89 (lines=7) @@
|
| 80 |
|
->getCollectionsMap() |
| 81 |
|
->get($cid, false); |
| 82 |
|
|
| 83 |
|
if (false === $collection) { |
| 84 |
|
$data = $this->adapter->query($sql, $sql->getParameters()); |
| 85 |
|
$collection = $this->repository->getEntityMapper() |
| 86 |
|
->createFrom($data); |
| 87 |
|
$this->repository->getCollectionsMap()->set($cid, $collection); |
| 88 |
|
$this->updateIdentityMap($collection); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
return $collection->isEmpty() |
| 92 |
|
? null |