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
Benjamin Eberlei
c763b47626
Merge commit 'dc2master/master' into lock-support
2010-04-21 20:30:41 +02:00
Roman S. Borschel
db603547a2
Added failing test for DDC-388. Naming refactorings and comment cleanups.
2010-04-13 00:49:19 +02:00
Benjamin Eberlei
e6a44b145f
[DDC-178] First approach to Locking support
2010-04-08 22:50:06 +02:00
romanb
354ede1e04
[2.0][DDC-354][DDC-425] Fixed. Encapsulated SQL logging better in the DBAL. Added binding types to DBAL mapping types as well as using these binding types in the persisters. Query and NativeQuery now support PDO binding types as well as DBAL mapping types when binding parameters.
2010-03-29 13:20:41 +00:00
guilhermeblanco
50c4e50921
[2.0][DDC-459] Moved Doctrine\ORM\AbstractQuery to Doctrine\ORM\Query\AbstractQuery, which is compatible with Doctrine Coding Standards
2010-03-23 17:53:38 +00:00
guilhermeblanco
7f7569d983
[2.0] Fixed issue with Cache drivers that in some situations they were not storing the entries. Also fixed bug with queryCacheTTL that was not being considered in a Query.
2010-03-19 18:09:03 +00:00
guilhermeblanco
34cbb8af24
[2.0] Fixed issue with DQL that was not considering input parameter 10. Also added support to retrieve the generated AST.
2010-03-16 19:21:59 +00:00
beberlei
64077ac65f
[2.0] Add missing Query::HINT_CUSTOM_OUTPUT_WALKER - it wasn't possible to change the output walker before without extending and overwriting one large method in Query
2010-03-06 09:52:48 +00:00
romanb
e235044c47
[2.0] Fixed query and result cache to work nice together and avoid unnecessary cache lookups.
2010-02-25 15:47:20 +00:00
romanb
82e42123de
[2.0][DDC-345] Fixed.
2010-02-23 14:58:12 +00:00
romanb
22fce635c0
[2.0][DDC-339][DDC-340] Fixed.
2010-02-20 18:27:05 +00:00
beberlei
5a96217d4d
[2.0] DDC-328 - Query and Result Cache Keys now depend on the hydrationMode also
2010-02-13 21:42:09 +00:00
beberlei
04832e2789
[2.0] DDC-125 - Query Hints are now included in both QueryCache and ResultCache - QueryCache now also uses firstResult and maxResults for the cache key - ResultCache was fixed to use "getSql()" instead of "getDql()"
2010-02-10 19:09:25 +00:00
beberlei
3e823f065a
[2.0] DDC-176 - Disallow iterate() over fetch-join collections by the means of an exception on parsing the DQL query.
2009-12-08 20:53:01 +00:00
romanb
555b097641
[2.0][DDC-164][DDC-165] Fixed. Cleaned up ManyToManyMapping. Cleaned up identifier handling and handling of composite identifiers in some places.
2009-11-21 18:52:02 +00:00
beberlei
a9d739a743
[2.0] Refactor Exceptions from Query and AST\InputParameter into QueryException class.
2009-11-21 17:04:17 +00:00
beberlei
f9ab947372
DDC-126 - Make Query, NativeQuery Fluent-Interfaces for all their set Methods, renamed setExpireQueryCache() and setExpireResultCache() to expireQueryCache() and expireResultCache(). Updated UPGRADE_TO_2_0 document accordingly.
2009-11-21 13:13:19 +00:00
beberlei
fc98f26371
DDC-127 - Commit missing changes to Query Error handling which make testsuite fail.
2009-11-21 12:33:30 +00:00
romanb
f572c372dc
[2.0] Fixed DDC-18. Simplified proxy classes. Just 1 proxy class per entity now, instead of 2.
2009-10-28 15:32:55 +00:00
romanb
94c187685b
[2.0] Work on CLI: Added SchemaToolTask with preliminary support for dropping/creating the database schema. Prepared the sandbox. Adjusted build to include the sandbox.
2009-08-31 16:21:29 +00:00
romanb
e578bad687
[2.0] Fixed several referential integrity issues. Fixed critical issue with inserts being run twice on postgresql/oracle. Added support for additional tree walkers that modify the AST prior to SQL construction and started to play with it in a testcase.
2009-08-13 10:13:06 +00:00
romanb
00599a80d4
[2.0] Streamlined result structures. Hydration improvements: Small overall improvements, large improvement for (joined) fetched collections (~60%).
2009-08-03 13:25:56 +00:00
romanb
2ec4cc5cbe
[2.0] More cleanups for recent lazy-loading implementation and minor object hydration improvements and cleanups. Collection refactoring part I for ticket #2352 .
2009-07-29 11:57:27 +00:00
romanb
49434b0322
[2.0] Further cleanups. Started eager loading support.
2009-07-21 09:25:14 +00:00
jwage
ba8b4337bb
[2.0] Cleanup on QueryBuilder and Expr from discussion with roman
2009-07-10 18:26:43 +00:00
romanb
455f877486
[2.0] Minor refactorings and docblock adjustments. Fixed #3202 .
2009-06-30 16:00:28 +00:00
romanb
104398003c
[2.0] Parser work.
2009-06-14 17:34:28 +00:00
romanb
b66d530540
[2.0] Class table inheritance updates. Started work on self-referencing associations.
2009-05-26 11:30:07 +00:00
romanb
c9cc9f1373
[2.0] Parser code review with some cleanups and comments to highlight TODOs.
2009-05-24 10:38:37 +00:00
romanb
a421692679
[2.0] Fixed Query Cache (+testcase) and some E_STRICT errors.
2009-05-21 19:18:14 +00:00
romanb
4d13925b1c
[2.0] Some hydration and DQL parser work.
2009-05-17 19:27:12 +00:00
romanb
e0488ff8fc
[2.0] First draft of EntityManager#merge(). First draft of DynamicProxyGenerator.
2009-05-11 10:43:27 +00:00
romanb
ee46dba332
[2.0] Moved code between Query and AbstractQuery. Added first NativeQuery implementation. Hydration work and code movements for discriminator column usage. Started implementing Single Table Inheritance.
2009-04-12 19:02:12 +00:00
romanb
523c93c2f1
[2.0] Refactored SQL query building process and hydration. Hydration should now support result sets with any number of root components. Introducing ResultSetMapping that is used by hydration instead of queryComponents. This allows mapping of arbitrary SQL queries (NativeQuery).
2009-04-09 18:12:48 +00:00