| @@ 158-161 (lines=4) @@ | ||
| 155 | $data = $entry->data; |
|
| 156 | $hints = self::$hints; |
|
| 157 | ||
| 158 | if ($entity !== null) { |
|
| 159 | $hints[Query::HINT_REFRESH] = true; |
|
| 160 | $hints[Query::HINT_REFRESH_ENTITY] = $entity; |
|
| 161 | } |
|
| 162 | ||
| 163 | foreach ($metadata->associationMappings as $name => $assoc) { |
|
| 164 | if ( ! isset($assoc['cache']) || ! isset($data[$name])) { |
|
| @@ 718-721 (lines=4) @@ | ||
| 715 | list($params, $types) = $this->expandParameters($criteria); |
|
| 716 | $stmt = $this->conn->executeQuery($sql, $params, $types); |
|
| 717 | ||
| 718 | if ($entity !== null) { |
|
| 719 | $hints[Query::HINT_REFRESH] = true; |
|
| 720 | $hints[Query::HINT_REFRESH_ENTITY] = $entity; |
|
| 721 | } |
|
| 722 | ||
| 723 | $hydrator = $this->em->newHydrator($this->currentPersisterContext->selectJoinSql ? Query::HYDRATE_OBJECT : Query::HYDRATE_SIMPLEOBJECT); |
|
| 724 | $entities = $hydrator->hydrateAll($stmt, $this->currentPersisterContext->rsm, $hints); |
|