Ilyas Salikhov
57d2bf1f26
Remove final keyword from Query classes
2019-01-06 01:14:37 +03:00
Marco Pivetta
23af164d7a
Note: this will still lead to the UnitOfWork#getSingleIdentifierValue()
still being
...
called when not specifying the type of a DQL parameter being bound via
`Doctrine\ORM\Query#setParameter()`:
```php
$query->setParameter('foo', $theValue, $theType);
```
A full parameter bind is required in order to gain back performance:
```php
$query->setParameter('foo', $theValue, $theType);
```
This is up for discussion with patch reviewers.
2018-12-16 18:05:02 +01:00
James Titcumb
c6d02daee0
$hydrationMode throughout can be a string as well as int (for custom modes)
2018-11-12 13:58:42 +00:00
Michael Gwynne
fd9f96c766
Updating _maxResults to allow for null
2017-09-04 09:26:11 +01:00
Alessandro Lai
d4db126bb0
Remove code duplication of the getAllDiscriminators method
2017-08-18 10:17:52 +02:00
Sergio Santoro
e91dcf8fb4
Fix discriminator resolution when using parameters
2017-06-24 13:35:44 +02:00
Artem Stepin
43009682a4
minor code work:
...
- method calls with incorrect case
- removed unused imports
- typos and some other minor code smells
- documentation update (wrong return types etc. )
2017-06-08 22:04:07 +02:00
Luís Cobucci
885c431bd9
Pass the connection parameters for cache key generation
...
That argument was added to not have key collisions for different
connections.
More info: https://github.com/doctrine/dbal/pull/713
2017-05-10 17:52:38 +02:00
Luís Cobucci
e71272e2b4
Evict result set cache if Query#expireResultCache() was called
2017-05-02 23:25:56 +02:00
Luís Cobucci
234989d069
Use short-array syntax on "lib" directory
2016-12-08 00:31:12 +01:00
ReenExe
b2f5da19a4
clear code
2016-11-26 06:40:56 +01:00
Gabriel Potkány
75f44008d6
Remove unneeded ternary operator from Query::contains
2016-08-16 01:31:46 +02:00
Jeroen Thora
6dcb97a20e
Fixed many small phpcs issues
2015-12-11 20:30:41 +01:00
Alex Vasilenko
c8d2ac40f4
fixes result cache setting query caching
2015-11-07 16:14:54 +00:00
Benjamin Morel
9eb458caa6
Query::_getQueryCacheId() directly accesses $this->_parsedTypes
2015-03-24 17:14:45 +01:00
Benjamin Morel
517cb7e2a2
Honor convertToDatabaseValueSQL() in DQL query parameters
2015-03-18 00:24:41 +01:00
Rhodri Pugh
ad10a18071
added more informative error messages when invalid parameter count
2014-07-15 13:17:22 +01:00
Antonio Vilar
4e61ceb0df
Added platform key
2014-06-27 22:36:02 +02:00
Antonio Vilar
0dde8585c3
Fixed query cache id generation: added platform to hash
2014-06-27 20:29:55 +02:00
Guilherme Blanco
4874070b3f
Merge branch 'feature/default-query-hints' of https://github.com/Strate/doctrine2 into Strate-default-query-hints
2014-05-15 01:15:34 +00:00
Steve Müller
a6c8ab8a5f
make lock mode usage consistent
2014-02-05 15:13:53 +01:00
Strate
5c44dd3823
Allow to use object as a hint value.
2014-02-04 15:51:53 +01:00
fabios
0a66a2bc09
CS/Doc Fixes
2013-12-16 11:05:05 -05:00
fabios
d135e402bb
handle update/delete queries
2013-12-16 11:05:05 -05:00
Fabio B. Silva
61bff7d5f6
Fix CS and update docs
2013-12-16 11:05:04 -05:00
Fabio B. Silva
3140593e9b
Second level cache
2013-12-16 11:05:04 -05:00
Fabio B. Silva
710d0d1109
Fix DDC-1995
2013-06-07 17:24:05 -04:00
Pascal Borreli
a2cd0f5804
Fixed typos
2013-03-11 00:08:58 +00:00
Benjamin Morel
7869ec714d
Fixed unused 'use' statements.
...
Fixed missed documentation issues in Doctrine\ORM
2012-12-13 18:19:21 +00:00
Benjamin Morel
dacdd6cd89
Documentation (docblock) fixes.
2012-12-01 16:28:06 +00:00
Olivier Dolbeau
79a9ce5000
Add some corrections
2012-06-05 21:32:53 +02:00
Olivier Dolbeau
7ca0ac289e
Remove tabs & trailing spaces
2012-06-05 15:46:10 +02:00
Guilherme Blanco
9445502885
Removed un-necessary getIterator().
2012-05-29 15:14:08 -04:00
Guilherme Blanco
b3e7493278
Made setParameters()/excute()/iterate() BC compatible.
2012-05-29 14:25:54 -04:00
Guilherme Blanco
1635e0af4b
[DDC-1840] Implemented parameters as a collection.
2012-05-28 12:16:42 -04:00
Benjamin Eberlei
0868ec1c19
Update Common and fix cache tests with different assumptions about keys.
2012-05-26 19:29:51 +02:00
Benjamin Eberlei
70458b2f48
LGPL => MIT
2012-05-26 14:37:00 +02:00
Guilherme Blanco
44d7d23e8d
Coding style fixes.
2012-03-15 01:26:06 -04:00
Benjamin Eberlei
bd1bc07270
[DDC-1651] Convert entities as parameters early in setParameter() to avoid them being part of result cache strings, which causes non-uniqueness.
2012-02-18 16:07:55 +01:00
Benjamin Eberlei
cd6131c9b8
Remove all trailing whitespaces
2011-12-19 22:56:19 +01:00
Benjamin Eberlei
003d1410b0
Merge pull request #224 from doctrine/DDC-551
...
DDC-551 - Filter branch
2011-12-18 08:03:23 -08:00
Andrew Mackrodt
2fdb55a878
Added absolute namespace paths to phpdoc annotations - issue DDC-1025.
2011-12-11 21:56:26 +00:00
Alexander
04635ad4ff
Merge remote-tracking branch 'upstream/master' into DDC-551
...
Conflicts:
lib/Doctrine/ORM/Persisters/ManyToManyPersister.php
lib/Doctrine/ORM/Persisters/OneToManyPersister.php
2011-12-05 21:53:34 +01:00
Guilherme Blanco
5e3e8b3957
More refactorings and optimizations.
2011-12-01 10:00:26 -05:00
Alexander
be48821e86
Merge remote-tracking branch 'origin/master' into DDC-551
...
Conflicts:
lib/Doctrine/ORM/Persisters/BasicEntityPersister.php
lib/Doctrine/ORM/Query.php
2011-11-23 22:43:42 +01:00
Benjamin Eberlei
9e8a950f2e
DBAL-171 - Fix bug where params where resorted but types where not in DQL Query
2011-11-18 17:29:31 +01:00
Adrien BRAULT
e39bfced4a
Fix iterate method doc return type
2011-10-29 13:40:01 +02:00
Benjamin Eberlei
adc4840cce
DDC-217 - Add support for QueryCacheProfiles and remove the old result caching code from ORM. Deprecate a bunch of methods in favor of using the AbstractQuery#getQueryCacheProfile method.
2011-10-23 23:28:23 +02:00
Alexander
097d573d26
Merge branch 'master' into DDC-551
...
Conflicts:
lib/Doctrine/ORM/Configuration.php
lib/Doctrine/ORM/Persisters/BasicEntityPersister.php
lib/Doctrine/ORM/Persisters/ManyToManyPersister.php
2011-10-14 12:33:39 +02:00
Alexander
63a3fb5ad8
[DDC-551] Moved SQLFilter logic to a separate FilterCollection class
2011-09-15 21:38:47 +02:00