Maks Feltrin
f98dfc4758
DO NOT OVERRIDE CUSTOM TREE WALKERS IN getIterator()
2013-08-29 08:36:39 +02:00
Roger Llopart Pla
1bc6140394
Added docblock.
2013-08-10 16:58:07 +02:00
Roger Llopart Pla
7f1becf283
Appending the Paginator tree walker hint, instead of removing all the other hints.
2013-08-10 16:58:07 +02:00
Michaël Gallego
3f112db725
Allow to have non-distinct queries
2013-07-09 17:31:30 +02:00
Guilherme Blanco
20e5d98b7b
Merge pull request #640 from denkiryokuhatsuden/patch-1
...
[Paginator]Add hidden field ordering for postgresql
2013-06-24 19:23:36 -07:00
Raymond Kolbe
4bafcc5b31
Fix Oracle subquery ordering
...
See http://www.doctrine-project.org/jira/browse/DDC-1800 and http://www.doctrine-project.org/jira/browse/DDC-1958#comment-19969
2013-04-09 17:30:54 -03:00
Raymond Kolbe
b8b7afe576
Fix Oracle subquery ordering lost bug
...
See http://www.doctrine-project.org/jira/browse/DDC-1800 for a full description.
2013-04-09 17:00:06 -03:00
denkiryokuhatsuden
7af84e79e5
Fixed postgresql hidden scalar sort
2013-04-03 17:22:31 +09:00
denkiryokuhatsuden
786d904328
Revert "Add hidden field ordering for postgresql"
...
This reverts commit 3e8796f781
.
2013-04-03 17:14:31 +09:00
denkiryokuhatsuden
3e8796f781
Add hidden field ordering for postgresql
...
In postgresql environment, when some hidden fields are used in orderBy clause,
they're not property added because $rsm->scalarMappings don't have information about them.
2013-04-02 18:54:55 +09:00
Norbert Orzechowicz
6a69b4700c
[DDC-2282] Fix pagination problem with SQL Server.
...
ORDER BY removed from all count queries when on SQL Server
Fixed SQLServer ORDER BY problem in paginator CountOutputWalker
Added test to check query with ORDER BY and SQLServerPlatform
2013-03-12 19:03:27 +01:00
aleks
dc190a297d
Fix typo
2013-01-27 11:09:26 +02:00
aleks
5e6bc0847f
Added support for order by scalar
2013-01-26 21:31:45 +02:00
Benjamin Morel
ad967e8e22
Fixed documentation for Doctrine\ORM\Tools\Pagination
2012-12-14 13:13:22 +00:00
Benjamin Morel
7869ec714d
Fixed unused 'use' statements.
...
Fixed missed documentation issues in Doctrine\ORM
2012-12-13 18:19:21 +00:00
Miha Vrhovnik
8fe9fa0dc7
extracted pgsql sql generation into a helper method
2012-11-12 13:48:55 +01:00
Miha Vrhovnik
c7a75f477f
The distinct query should replicate the fields in order by clause and the order by clause itself from inner query
...
This fixes DDC-1958
2012-11-12 13:18:46 +01:00
HarmenM
8a29d91d15
Update lib/Doctrine/ORM/Tools/Pagination/Paginator.php
...
Replaced the foreach loop adding all IDs as single parameters with a single parameter which injects the IDs as an array.
2012-11-12 12:30:03 +01:00
HarmenM
88d0933a6e
Update lib/Doctrine/ORM/Tools/Pagination/WhereInWalker.php
...
replaced the for-loop which adds the InputParameters for a single InputParameter for use with an array instead of a set of scalars.
2012-11-12 12:30:03 +01:00
Christophe Coevoet
5a6c398ea0
Fixed coding standards in the Tools namespace
2012-11-03 16:37:31 +01:00
jakoch
d4a6c488ca
fixed use statements
2012-10-12 13:53:20 +02:00
Konstantin Kuklin
34d8843fd6
improve phpdoc
2012-09-21 03:20:06 +04:00
Benjamin Eberlei
bc2476f342
[DDC-1918] Fix weird results at the end of paginator when using fetch joins
2012-08-29 15:16:07 +02:00
Eric GELOEN
8c24e528ad
Clone directly the ArrayCollection instead of looping
2012-07-07 11:38:53 +02:00
Eric GELOEN
996e47bf61
Replaced a shallow-copy with a deep-copy to avoid side effects.
2012-07-06 17:49:03 +02:00
Olivier Dolbeau
7ca0ac289e
Remove tabs & trailing spaces
2012-06-05 15:46:10 +02:00
Benjamin Eberlei
3398d1e287
[DDC-1685] Fix bug in OutputWalker when used on entities with Foreign Key as Primary Key.
2012-05-27 18:33:35 +02:00
Benjamin Eberlei
f55b5411c8
[DDC-1791] Fix OutputWalker Pagination on Oracle
2012-05-27 13:22:48 +02:00
Benjamin Eberlei
70458b2f48
LGPL => MIT
2012-05-26 14:37:00 +02:00
Benjamin Eberlei
ab15528fde
Fix CS: AS => as in foreach loops.
2012-03-24 11:16:32 +01:00
Sander Marechal
53ff312936
Renamed *SqlWalker to *OutputWalker
2012-03-12 08:33:35 +01:00
Sander Marechal
ad871e8b26
Cleaned up use
statements
2012-03-08 09:41:35 +01:00
Sander Marechal
d2501a9e4a
Throw exception when using the CountWalker with a HAVING query
2012-03-07 08:42:09 +01:00
Sander Marechal
edd5d14b06
Pagination using SQL walkers
...
A CountSqlWalker and LimitSubquerySqlWalker have been implemented. By
default the Paginator will use these SQL walkers. When a query already
uses custom SQL walkers, the Paginator will fall back to the existing
TreeWalker implementations. Improvements:
* Support for more complex DQL queries using named mixed results with
GROUP BY and HAVING. For example:
SELECT g, u, COUNT(u.id) AS userCount
FROM Entity\Group g LEFT JOIN g.users u
GROUP BY g.id
HAVING userCount > 0
* Support for entities with composite primary keys in the CountSqlWalker
and LimitSubquerySqlWalker. Only the WhereInWalker still needs to be
updated for full composite primary key support. But someone smarter
than me needs to look at that and figure out how to build a WHERE IN
query that can select rows based on multiple columns.
2012-03-06 16:24:44 +01:00
Sander Marechal
5dc0081f56
Add support for paginating WHERE NOT ... queries
...
The Pagination tool throws an exception on a DQL query like:
SELECT u FROM User u WHERE NOT (u INSTANCE OF Person)
This is because Paginate does not know about the
Doctrine\ORM\Query\AST\ConditionalFactor which implements the NOT
operator. This patch adds support for that.
2012-01-23 15:42:41 +01:00
Benjamin Eberlei
775071e1ff
[DDC-1613] Merge KnpLabs/Pagerfanta Pagination into a Doctrine\ORM\Tools\Pagination namespace. Thanks to @hobodave, pablo and the knplabs team for developing and maintaining this code.
2012-01-22 13:35:06 +01:00