Bill Schaller
a8342a4be2
Cleanup
2015-03-31 21:36:33 +01:00
Bill Schaller
ff75a3ad49
Fix paginator issues when ordering by a joined column from a to-many association.
...
Manual merge testcase from #1351
2015-03-31 21:36:32 +01:00
Bill Schaller
54d7efd92c
Fix LimitSubqueryOutputWalker when used on tables with joined table inheritance
2015-03-31 21:32:28 +01:00
Fedik
5cd8334897
fix EntityGenerator RegenerateEntityIfExists
2015-03-27 13:10:14 +02:00
Marco Pivetta
d97d3ec0e5
Minor CS fixes (braces)
2015-03-24 00:37:17 +00:00
Marco Pivetta
45d39dd50d
Making preserveSqlOrdering
API private
2015-03-24 00:36:13 +00:00
Marco Pivetta
6dfff304f3
Merge branch 'hotfix/#1337-fix-oracle-postgresql-paginator-sorting-issues' into hotfix/#1342-paginator-functional-test-integration
2015-03-24 00:25:12 +00:00
Bill Schaller
4c84f54493
Fix failures on SQL Server due to scalar select items not having an alias
2015-03-19 17:09:47 -04:00
Jeremy
ac9a5e69ec
Properly generate default value from yml & xml mapping
2015-03-17 22:47:11 +00:00
Bill Schaller
5c4b6a2140
resolve nitpicks from @Ocramius and @deeky666
2015-03-17 18:44:03 -04:00
Bill Schaller
d710555265
Remove shameful hack in LimitSubqueryOutputWalker - replace with significantly less shameful hack
2015-03-17 18:32:57 -04:00
Bill Schaller
df0875c596
Fix Paginator OrderBy clauses when ordering by columns from non-fetched joined tables
2015-03-17 17:32:28 -04:00
Bill Schaller
eebce88146
Revert "Revert "Merge branch 'hotfix/#1220-sort-paginator-subquery-output-only-once'""
...
This reverts commit 6a1755972d19af4c1c07bc9c555d456d66426bda.
2015-03-17 13:58:50 -04:00
Thomas Lomas
37f5c82d15
Add proper pluralization into UpdateCommand
2015-02-24 18:13:13 +00:00
Marco Pivetta
6a1755972d
Revert "Merge branch 'hotfix/#1220-sort-paginator-subquery-output-only-once'"
...
This reverts commit 8f097ab30436412e8a62ead3fefe27c28d5bc905, reversing
changes made to b23a8dd4293a2509d64d8e650d9cccf088cded9f.
Conflicts:
tests/Doctrine/Tests/ORM/Tools/Pagination/LimitSubqueryOutputWalkerTest.php
2015-01-24 13:10:25 +01:00
Bill Schaller
3fd3da3d46
Fixed removal of ASC and DESC keywords from orderby items that will be included in select list
2015-01-17 22:12:26 +01:00
Bill Schaller
8350de781f
Doc fix
2015-01-17 22:12:26 +01:00
Bill Schaller
dfc0910756
Fixed how order by items are included in the select list of the select distinct wrapper statement
2015-01-17 22:12:26 +01:00
Bill Schaller
ed800e4b86
Added function to LimitSubqueryOutputWalker which takes an order by clause and rebuilds it to work in the scope of the wrapping query
2015-01-17 22:12:25 +01:00
Bill Schaller
a4ebc08c4f
* Modified tests in LimitSubqueryOutputWalkerTest.php to not have duplicated order by clauses
...
* Modified LimitSubqueryOutputWalker to not duplicate order by clauses
2015-01-17 22:12:25 +01:00
Marco Pivetta
fea0425a4f
#1262 DDC-3513 - RunDqlCommand
should write to the output object rather than to the output buffer
2015-01-17 21:31:00 +01:00
Bob van de Vijver
3c2ed7d8a8
Fixes the broken DQL command
...
Now it can again output more than only the created SQL query.
See cdb62a70cd (comments)
2015-01-17 13:21:30 +01:00
Marco Pivetta
6fc0d84b7a
DDC-3427 - s/EntityManager/EntityManagerInterface in type-hints
2015-01-16 14:21:30 +01:00
Andrea Sprega
243210e896
DDC-3493 - fixed EntityGenerator parsing for php 5.5 "::class" syntax
2015-01-15 04:13:09 +01:00
Marco Pivetta
541e7bdf72
Refactoring test method: no need to test for PHP version
2015-01-14 20:13:46 +01:00
Marco Pivetta
662b49608c
#385 #1181 DDC-3385 - aligning tests and implementation to new OnClassMetadataNotFoundEventArgs
API
2015-01-13 20:56:57 +01:00
Marco Pivetta
d91b0b4938
Minor CS fixes in the ResolveTargetEntityListener
2015-01-13 19:50:17 +01:00
Bart van den Burg
3be43a1def
Rebased and renamed PreLoadClassMetadata to OnClassMetadataNotFound
2015-01-13 19:49:57 +01:00
Bart van den Burg
437f812718
Added new event to allow actions to be done before trying to load class metadata
2015-01-13 19:49:57 +01:00
Bart van den Burg
51528fbdea
set metadata for interface to be able to fetch entites by interface name
2015-01-13 19:49:57 +01:00
Steve Müller
d1e5034659
fix index duplication for unique association join columns
2015-01-08 15:39:41 +01:00
Johannes Schlüter
cdb62a70cd
Allow dumping SQL query when passing DQL on cli
2014-12-24 14:15:23 +01:00
Gareth Evans
2fac6272a1
Checks key exists rather than isset
...
If the default value is set to `null`, `isset` will return `false` even though the key is actually there for a reason.
2014-12-08 01:31:14 +01:00
Fedik
c1eff7045a
XML export driver: fix export options
2014-12-07 13:05:19 +02:00
Marco Pivetta
ac67a10d4c
DDC-3434 - adding note on why restoring 'HIDDEN' selected fields is relevant
2014-12-05 18:02:12 +01:00
Marco Pivetta
6169175a89
DDC-3434 - HIDDEN
modifier marked fields in ORDER BY
clause are always preserved when creating a paginator subquery
2014-12-05 17:11:57 +01:00
Marco Pivetta
e53e8bfe8e
DDC-3336 - applied hotfix: only PathExpression
instances have a $field
property
2014-12-05 14:56:47 +01:00
Marco Pivetta
ce308dc476
#1204 - refactored sequence-generator metadata exporting into own private method for simplicity
2014-12-04 14:00:05 +01:00
Paulo de Freitas
aa1454562c
Fix sequence-generator in MetaData exporter for XML Driver.
2014-12-04 14:00:05 +01:00
Marco Pivetta
9d2c0481ae
#1200 - removing console deprecation errors by using the new Symfony\Component\Console\Helper\Table
instead of the deprecated TableHelper
2014-12-04 13:40:22 +01:00
Marco Pivetta
d3b1bf571b
#1200 - removing Yaml::parse()
deprecation errors by passing in file contents instead of file paths
2014-12-04 13:37:59 +01:00
Marco Pivetta
f536daa1e4
#1188 - Simplified and optimized parameter un-setting logic
2014-11-27 18:08:11 +01:00
Marco Pivetta
ac0f1b2ce2
#1188 - Importing parser class
2014-11-27 17:59:12 +01:00
Marco Pivetta
69064ac13d
#1188 - making Doctrine\ORM\Tools\Pagination\Paginator#getCountQuery()
private, as it is an implementation detail
2014-11-27 17:48:37 +01:00
Marco Pivetta
a80117a4ee
#1188 - removing unused variable assignments
2014-11-27 17:42:14 +01:00
Paweł Kolanowski
af39fce6e5
Missing doc block, removed parse() parameter.
...
Missing doc block, removed parse() parameter.
2014-11-27 17:27:22 +01:00
Merixstudio
d02ea224df
Allowed to get count query from paginator.
2014-11-27 17:27:22 +01:00
Merixstudio
42aff75108
Fixed counting exception
...
Fixed "Invalid parameter number: number of bound variables does not match number of tokens " exception during execution count on Query where select part of query contains :parameters.
2014-11-27 17:27:22 +01:00
Marco Pivetta
ab62914f87
Merge pull request #1089 from encoder32/EntityRepositoryGeneratorDefaultRepository
...
EntityRepositoryGenerator default repository
2014-11-11 16:22:51 +01:00
Marco Pivetta
76e1a469ef
Merge pull request #1027 from PowerKiKi/feature-partial-indexes
...
Support for Partial Indexes for PostgreSql and Sqlite
2014-11-05 13:19:29 +01:00