We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 365b786 commit 7c800ddCopy full SHA for 7c800dd
src/NHibernate/Cache/QueryCacheResultBuilder.cs
@@ -27,20 +27,19 @@ internal QueryCacheResultBuilder(Loader.Loader loader)
27
_resultTypes = loader.ResultTypes;
28
_cacheTypes = loader.CacheTypes;
29
30
- if (loader.EntityFetches == null)
+ if (loader.EntityFetches != null)
31
{
32
- return;
33
- }
34
-
35
- for (var i = 0; i < loader.EntityFetches.Length; i++)
36
- {
37
- if (loader.EntityFetches[i])
+ for (var i = 0; i < loader.EntityFetches.Length; i++)
38
39
- _entityFetchIndexes.Add(i);
+ if (loader.EntityFetches[i])
+ {
+ _entityFetchIndexes.Add(i);
+ }
40
}
+
+ _hasFetches = _entityFetchIndexes.Count > 0;
41
42
43
- _hasFetches = _entityFetchIndexes.Count > 0;
44
if (loader.CollectionFetches == null)
45
46
return;
0 commit comments