Marco Pivetta
07b397f341
#6284 fixing actual issue, which comes from an extremely tricky L2 caching issue.
...
We are not hydrating some of the cached association data into entities due to keys missing in the cache association definition.
Since this is an extreme edge case that is just a mismatch between db and cache, a detailed explanation was provided in the fix snippet as well
2017-08-23 00:19:49 +02:00
Luís Cobucci
ccaa4b8ce1
Use getMultiple()
to fetch associations as well
2017-04-30 13:43:29 +02:00
Luís Cobucci
1f53afa9cd
Make sure we're using the rootEntityName on all places
...
Otherwise we might end up with duplicated cache entries and weird
results (specially regarding associations).
2017-01-19 17:24:47 +01:00
Luís Cobucci
4f28aaa206
Refactor to use class_map() instead
2017-01-16 23:22:52 +01:00
Mikhail Polyanin
bb943afabe
Optimization. Multiple get in QueryCache
2017-01-16 23:02:23 +01:00
Luís Cobucci
234989d069
Use short-array syntax on "lib" directory
2016-12-08 00:31:12 +01:00
FabioBatSilva
163dac4a91
#5854 - Fix SLC queries with multiple nested DQL aliases
2016-06-17 00:11:18 -04:00
Marco Pivetta
288e3191ce
#5854 - simple workaround to avoid populating SLC cache from DQL queries with multiple nested DQL aliases
2016-06-16 23:00:59 -04:00
Mikhail Shamin
bf322b903d
Optimize imports. Remove full qualified class names
2016-05-11 01:55:12 +07:00
Guido Contreras Woda
427642aaba
Entity cache key is built differently on read than on write
2015-11-17 16:10:17 -03:00
Marco Pivetta
506df640b5
Merge pull request #1433 from goetas/slc-check-to-classmetadatainfo
...
Check for non-cacheable entities on metadata level, not at runtime
2015-07-16 20:41:30 +01:00
Kris Pypen
a2a400b8fb
Fix second level caching for queries with multiple joins
...
The $metadata of the main entity is not always the metadata you need here, for example when you do join A with B and then B with C. For the second join it was using the metadata from A.
2015-07-03 14:45:25 +02:00
Asmir Mustafic
11be4fae86
Do not check at runtime for non-cacheable associations
2015-06-20 14:32:14 +02:00
Marco Pivetta
22e12e0043
#1001 DDC-3005 - coverage annotations, minor CS fixes
2015-01-12 23:50:16 +01:00
Strate
f3b31c2807
DDC-3005 Defer invoking of postLoad event to the end of hydration cycle.
...
This feature makes guarantee, that postLoad event fires after all associations are populated
2015-01-12 22:33:40 +01:00
Fabio B. Silva
e9ec0a24da
[SLC] resolve association cache entry
2014-03-06 20:44:59 -05:00
Fabio B. Silva
cbdd8bc041
[SLC] Fix query association proxy
2014-03-05 04:10:07 -05:00
Benjamin Morel
08f6291350
Cleaned up further unused imports.
2014-02-09 23:45:22 +00:00
Fabio B. Silva
61bff7d5f6
Fix CS and update docs
2013-12-16 11:05:04 -05:00
Fabio B. Silva
1438a59c00
Fix persister query cache invalidation
2013-12-16 11:05:04 -05:00
fabios
1bfa8f0fc3
Extract cache config
2013-12-16 11:05:04 -05:00
Fabio B. Silva
3140593e9b
Second level cache
2013-12-16 11:05:04 -05:00