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
Guilherme Blanco
918e2d2018
Fixed remaining Doctrine packages upgrade.
2011-09-13 01:14:36 -03:00
Guilherme Blanco
f29c907f41
Optimized and refactored code for getParameterValue in Doctrine\ORM\Query.
2011-09-02 13:53:53 -03:00
Guilherme Blanco
3b3186ee98
Added support to user provide an array of Entities as a DQL parameter. Fixes DDC-1356.
2011-09-01 19:11:57 -03:00
Alexander
2653d735e2
[DDC-551] Added state of the complete filter collection to the EM
...
Previously it was sufficient to use the old parser result for a Query if
the DQL didn't change (Query::STATE_CLEAN), but now there must also be
no changes to the filter collection of the EntityManager.
In the old situation each Query object would create a hash of all the
filter objects on it's own. That was not very efficient.
This commit adds the state of the current filter collection to the
EntityManager. The state will be set to FILTERS_STATE_DIRTY as a filter
is enabled, removed or a parameter is set on a filter. The hash is also
computed by the EntityManager, but only if the filter collection is
dirty. This will prevent recalculation of the hash with each query.
2011-08-16 13:34:42 +02:00
Alexander
e3dcfa8702
[DDC-551] Added filters to query hash + tests for hash
2011-07-22 17:01:18 +02:00
Alexander
6163d9d932
[DDC-551] Added enabled filters to Query hash
2011-07-22 15:26:03 +02:00
Benjamin Eberlei
2858b8290f
DDC-1238 - Fixed a bug introduced when refactoring persisters hydration. This occurs when you call $em->clear() and you start accessing a proxy.
2011-07-04 23:19:08 +02:00
Benjamin Eberlei
7905f2a972
[DDC-1040] Bugfix with named parameters and multiple entities passed as parameter.
2011-04-03 23:03:39 +02:00
Benjamin Eberlei
b05e1ad7ad
Fix typo in last patch
2010-10-01 21:05:54 +02:00
Benjamin Eberlei
638c3df3a6
DDC-822 - Fix making queries with detached entities
2010-09-30 21:59:01 +02:00
Benjamin Eberlei
0b5c694a7e
DDC-778 - Fix AbstractQuery::__clone implementation that was wrongly implemented in DDC-770. Added more tests.
2010-08-30 20:30:11 +02:00
Roman S. Borschel
a1c13b58d3
Fixed behavior of PersistentCollection#clear(). Fixed single-valued association path expression support in DQL UpdateItems.
2010-07-08 17:30:39 +02:00
Roman S. Borschel
d6cb87a0ac
[DDC-604] Fixed.
2010-06-07 13:57:43 +02:00
Benjamin Eberlei
78328ec6ea
DDC-178 - Removed Doctrine\ORM\LockMode in favour of Doctrine\DBAL\LockMode
2010-05-15 11:48:20 +02:00