@@ 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])) { |
@@ 735-738 (lines=4) @@ | ||
732 | list($params, $types) = $this->expandParameters($criteria); |
|
733 | $stmt = $this->conn->executeQuery($sql, $params, $types); |
|
734 | ||
735 | if ($entity !== null) { |
|
736 | $hints[Query::HINT_REFRESH] = true; |
|
737 | $hints[Query::HINT_REFRESH_ENTITY] = $entity; |
|
738 | } |
|
739 | ||
740 | $hydrator = $this->em->newHydrator($this->currentPersisterContext->selectJoinSql ? Query::HYDRATE_OBJECT : Query::HYDRATE_SIMPLEOBJECT); |
|
741 | $entities = $hydrator->hydrateAll($stmt, $this->currentPersisterContext->rsm, $hints); |