@@ 246-260 (lines=15) @@ | ||
243 | } |
|
244 | ||
245 | // Evaluate @NamedNativeQueries annotation |
|
246 | if (isset($classAnnotations[Annotation\NamedNativeQueries::class])) { |
|
247 | /** @var Annotation\NamedNativeQueries $namedNativeQueriesAnnot */ |
|
248 | $namedNativeQueriesAnnot = $classAnnotations[Annotation\NamedNativeQueries::class]; |
|
249 | ||
250 | foreach ($namedNativeQueriesAnnot->value as $namedNativeQuery) { |
|
251 | $classMetadata->addNamedNativeQuery( |
|
252 | $namedNativeQuery->name, |
|
253 | $namedNativeQuery->query, |
|
254 | [ |
|
255 | 'resultClass' => $namedNativeQuery->resultClass, |
|
256 | 'resultSetMapping' => $namedNativeQuery->resultSetMapping, |
|
257 | ] |
|
258 | ); |
|
259 | } |
|
260 | } |
|
261 | ||
262 | // Evaluate @SqlResultSetMappings annotation |
|
263 | if (isset($classAnnotations[Annotation\SqlResultSetMappings::class])) { |
@@ 287-300 (lines=14) @@ | ||
284 | } |
|
285 | ||
286 | // Evaluate NamedNativeQueries annotation |
|
287 | if (isset($classAnnotations[Annotation\NamedNativeQueries::class])) { |
|
288 | $namedNativeQueriesAnnot = $classAnnotations[Annotation\NamedNativeQueries::class]; |
|
289 | ||
290 | foreach ($namedNativeQueriesAnnot->value as $namedNativeQuery) { |
|
291 | $classMetadata->addNamedNativeQuery( |
|
292 | $namedNativeQuery->name, |
|
293 | $namedNativeQuery->query, |
|
294 | [ |
|
295 | 'resultClass' => $namedNativeQuery->resultClass, |
|
296 | 'resultSetMapping' => $namedNativeQuery->resultSetMapping, |
|
297 | ] |
|
298 | ); |
|
299 | } |
|
300 | } |
|
301 | ||
302 | // Evaluate SqlResultSetMappings annotation |
|
303 | if (isset($classAnnotations[Annotation\SqlResultSetMappings::class])) { |