Javier Spagnoletti
e2b198112e
[minor] Add missing type hints, add strictness for some checks, remove some useless calls
2016-11-26 05:18:46 +01:00
Marco Pivetta
8c38f5775d
Merge pull request #6121 from kalessil/sca
...
Static Code Analysis with Php Inspections (EA Extended)
2016-11-26 04:57:48 +01:00
Luís Cobucci
317e86802d
Make child entity share the timestamp region with parent class
2016-11-20 19:27:53 +00:00
Vladimir Reznichenko
0bf3d7f84c
Static Code Analysis with Php Inspections (EA Extended)
2016-11-06 14:22:47 +01:00
Luís Cobucci
dd476094af
The timestamp verification is now done by the validator
...
So it's useless to keep it here too.
2016-09-08 13:50:06 +02:00
Luís Cobucci
b431332cef
Evict query cache when entities are updated
2016-09-08 13:50:06 +02:00
Luís Cobucci
b49026b657
Add timestamp key to QueryCacheKey
2016-09-08 13:50:06 +02:00
Luís Cobucci
16a3a2a132
Use microtime to have more precision on cache time
2016-09-08 13:50:06 +02: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
Luís Otávio Cobucci Oblonczyk
2c1818d513
Fix typo
2016-06-05 10:25:08 +00:00
Mikhail Shamin
bf322b903d
Optimize imports. Remove full qualified class names
2016-05-11 01:55:12 +07:00
Jeroen Thora
6dcb97a20e
Fixed many small phpcs issues
2015-12-11 20:30:41 +01:00
Guilherme Blanco
57b22bd646
Merge pull request #1568 from guiwoda/patch-ddc-3967
...
Identifier is cached with wrong type
2015-11-24 22:17:59 -05:00
Guido Contreras Woda
427642aaba
Entity cache key is built differently on read than on write
2015-11-17 16:10:17 -03:00
Jan Langer
91ce78815f
Second level cache stores identifier with correct type even if findById is called with wrong identifier type
2015-11-14 11:17:16 +01:00
Guilherme Blanco
e64f44ec9b
Fix one to one inverse side cached entity association key generation
2015-11-13 15:58:52 +00:00
Guilherme Blanco
58992ad523
Fixed support for inverse side second level cache
2015-11-12 05:00:08 +00:00
Guido Contreras Woda
d57ecc12c0
Collection cache key is built differently on read than on write
2015-11-11 12:10:29 -03:00
Guilherme Blanco
3e0529db53
Merge pull request #1493 from alireza-m/master
...
Pass orderings, maxRresults and firstResult when call getHash
2015-11-08 22:36:06 -05:00
Guilherme Blanco
843966ac50
General fixes across CS, type resolving, test fixes, etc
2015-11-07 03:55:05 +00:00
Marco Pivetta
29c2b807ce
Merge pull request #1474 from localheinz/fix/unused-imports
...
Fix: Remove unused imports
2015-09-04 08:30:46 +01:00
Benjamin Eberlei
2b3648c725
[DCOM-293] Fix security misconfiguration vulnerability allowing local remote arbitrary code execution.
2015-08-31 14:16:50 +02:00
Alireza Meskin
dfa874642a
Pass orderings, maxRresults and firstResult when call getHash
2015-08-16 15:22:06 +04:30
Andreas Möller
8a9f6849a2
Fix: Remove unused imports
2015-07-24 12:48:34 +02: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
Darien Hager
cddbbf00b4
Stumbled across a bug where signatures didn't match, but also the current persister-type didn't support getCacheRegion(). Unsure of exact mechanism, but clearly the constructor doesn't take the second argument anyway, may be old code.
2015-07-15 20:29:43 +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
Menno Holtkamp
5f891435f1
Use early return
2015-04-14 16:02:36 +02:00
Menno Holtkamp
34b6ce9259
Introduced getCacheEntryKey() to combine region name and cache key
2015-04-14 09:52:25 +02:00
Menno Holtkamp
dbc29d28d2
Simplified way to fetch multiple entries when index does not matter
2015-04-14 09:47:57 +02:00
Menno Holtkamp
012f33524b
Fixed some typo's
2015-04-14 09:43:22 +02:00
Menno Holtkamp
c236a67096
Used index as key to retrieve proper entry
2015-04-13 23:33:09 +02:00
Josef Kříž
d1a695b42b
Typo in phpdoc
2015-03-23 15:57:41 +01:00
Asmir Mustafic
d72ad9cc50
Handling composite keys on non cache-able entities
2015-02-20 10:00:36 +01:00
Asmir Mustafic
60164931b8
Handled one-to-many non cache-able relations
2015-02-16 08:55:27 +01:00
Asmir Mustafic
a2461d6d5f
Use identifier flattener to retrevie entity identifiers
2015-02-16 08:55:27 +01:00
Asmir Mustafic
58e20c70c6
Store column values of not cache-able associations
2015-02-16 08:55:27 +01:00
Asmir Mustafic
8eea7c86f7
Resolve association entries on multi get cache
2015-02-16 00:53:48 +00:00
Asmir Mustafic
51b34919ba
Second level cache check with composite primary keys
2015-02-16 00:53:46 +00:00
Marco Pivetta
c7a6352b08
#1169 DDC-3343 - eagerly evicting cache if a persister passes a delete operation down to the DB
2015-01-27 09:04:28 +01:00
Marco Pivetta
a9671fdc2e
#1169 DDC-3343 - eagerly evicting cache if a persister passes a delete operation down to the DB
2015-01-27 09:04:00 +01:00
Marco Pivetta
cb780e8bb6
#1169 DDC-3343 - factoring logging into cached collection persister changes
2015-01-25 04:45:45 +01:00
Marco Pivetta
7e85c94f48
#1169 DDC-3343 - adapting cached collection persister logic to EXTRA_LAZY collection behavior
2015-01-25 04:40:30 +01:00
Marco Pivetta
b1474768fe
#954 DDC-2982 - Better type-safety in Doctrine\ORM\Cache\Region\DefaultMultiGetRegion
instantiation logic
2015-01-17 23:43:34 +01:00
Marco Pivetta
624b98544a
#954 DDC-2982 - DefaultCacheFactory
now supports generic Doctrine\Common\Cache\Cache
instances
2015-01-17 23:42:49 +01:00
Marco Pivetta
564624814b
#954 DDC-2982 - Evicting all cache entries is not supported with a generic cache adapter
2015-01-17 23:30:37 +01:00
Marco Pivetta
95c6cca336
#954 DDC-2982 - Minor CS fixes/IDE hints
2015-01-17 23:17:07 +01:00
Marco Pivetta
8ddcc4b270
#954 DDC-2982 - No need to check if a Region
is a MultiGetRegion
2015-01-17 23:11:14 +01:00