Sergey Fedotov
741da6eed7
Fix undefined index for discriminator column in SchemaTool
2017-06-21 06:31:23 +02:00
Guilliam Xavier
57bb46ca9d
Add regex tests for MetadataFilter (PR #507 )
2017-06-21 06:15:25 +02:00
Guilliam Xavier
0416d5e036
Add more basic tests for MetadataFilter
2017-06-21 06:15:14 +02:00
Guilliam Xavier
824f62d3bb
Add failing test for #5715 (unit test for MetadataFilter)
2017-06-21 06:14:48 +02:00
Thomas Ploch
a5eb0f2e82
Exporters should only inspect joinColumns
for owning side in bi-directional OneToOne
...
rebased commits:
- Added test case for bi-directional OneToOne in YamlExporter
- Only inspect joinColumns for owning side in bi-directional OneToOne in YamlExporter
- Adding bi-directional test case without joinColumn to XmlExporter test
- Same testcase also applied to PhpExporter
- Fixing bi-directional issue in PhpExporter when inspecting joinColumns index
- Implemented @Ocramius suggestions
2016-06-08 13:34:10 +02:00
Marco Pivetta
7065ff0ac9
Merge branch 'hotfix/#1572-target-entity-resolver-dql-with-interfaces-support' into 2.5
...
Close #1572
2015-12-11 21:35:18 +01:00
Marco Pivetta
aa61328e90
#1572 - test coverage - interfaces should also resolve to target entities when in DQL
2015-12-11 21:30:19 +01:00
Marco Pivetta
6e3ce26429
Correcting minor test case incompatibility with XDebug 2.4.x
...
In PHP 5.x + XDebug < 2.4, the output would be "string:..."
In PHP 7.x + XDebug >= 2.4, the output would be "the/file/name.php:11:string:..."
This is an improvement in XDebug that is quite annoying for our purposes, but is actually welcome to most users anyway.
This commit simply fixes that incompatibility
2015-12-11 19:35:28 +01:00
Guilherme Blanco
04254a8e34
Merge pull request #1512 from neoglez/2.5
...
Backport of "LimitSubqueryOutputWalker: fix aliasing of property in OrderBy from MappedSuperclass"
2015-11-15 22:08:59 -05:00
Michał Bundyra
567220ef71
prevent duplicate unique index
2015-11-07 16:46:22 +00:00
neoglez
ef73249bc7
Entity to test a mapped superclass
...
Backport of https://github.com/doctrine/doctrine2/pull/1377/files to branch 2.5
2015-09-21 09:32:54 +02:00
neoglez
a3ece3b419
UnitTest backport of "Failing test case for broken paginator case"
...
UnitTest backport of "Failing test case for broken paginator case" ( 192da14842
).
The branch 2.x is very important because it's related to ZF2 doctrine module (see https://github.com/doctrine/DoctrineORMModule/blob/master/composer.json ) and specially this issue affects the use case of extending the ZF2 user entity defined in ZfcUser ( https://github.com/ZF-Commons/ZfcUser ).
This test is meant to show the need of the backport of e501137d1a
2015-09-21 08:52:46 +02:00
Bill Schaller
89eed31e79
Merge pull request #1463 from ehimen/paginate-order-by-subselect
...
Fixed issue when paginator orders by a subselect expression
Conflicts:
tests/Doctrine/Tests/ORM/Tools/Pagination/LimitSubqueryOutputWalkerTest.php
2015-08-04 14:31:08 -04:00
Bill Schaller
af3f5c5c5a
Add test for paginating on a query with a subquery in the where clause
...
Conflicts:
tests/Doctrine/Tests/ORM/Tools/Pagination/LimitSubqueryOutputWalkerTest.php
2015-03-31 21:38:58 +01:00
Bill Schaller
010d52378c
Fix LimitSubqueryOutputWalkerTest
2015-03-31 21:36:33 +01:00
Fedik
5cd8334897
fix EntityGenerator RegenerateEntityIfExists
2015-03-27 13:10:14 +02: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
b057b64c1c
Fix tests for SLC console commands failing due to comparison with decorated console output.
2015-03-20 13:45:49 -04: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
Bill Schaller
591fd00d73
Fix capitalization of mapping annotations in PaginationTestCase.php
2015-03-19 16:47:04 -04:00
Jeremy
ac9a5e69ec
Properly generate default value from yml & xml mapping
2015-03-17 22:47:11 +00: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
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
Austin Morris
c8160fcd0e
Failing test for an ORDER BY that is INNER JOINED in a subquery
2015-01-24 13:07:56 +01:00
Marco Pivetta
61e07e5907
Handling minor HHVM incompatibility (dumped value is different between PHP and HHVM)
2015-01-18 02:54:18 +01:00
Bill Schaller
39aeb9935b
Added failing testcase for Limit queries on entities with column names containing 'asc' or desc'
2015-01-17 22:12:26 +01:00
Bill Schaller
7031539314
Fixed SQL that could be considered invalid on the targeted platforms in LimitSubqueryOutputWalkerTest
2015-01-17 22:12:26 +01:00
Bill Schaller
42bea80a6a
Added failing test cases for limit queries with with complex scalar order by items
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
f06d652393
#1262 DDC-3513 - RunDqlCommand
should display the generated SQL when asked to do so
2015-01-17 21:30:34 +01:00
Marco Pivetta
1c6fd512a5
#1262 DDC-3513 - providing basic coverage for the RunDqlCommand
logic
2015-01-17 21:27:32 +01:00
lukasmaz
41dd584f62
Test case for "class" keyword
...
Test case for http://www.doctrine-project.org/jira/browse/DDC-3493
2015-01-15 04:12:31 +01:00
Steve Müller
d343617f13
Merge pull request #1255 from Ocramius/cleanup/php-5.3-support-end
...
Cleanup: PHP 5.3 support end
2015-01-15 01:29:00 +01:00
Alexander Kurilo
58cd520e32
Fix attempt of traversing bool in FileLockRegion
2015-01-14 23:51:41 +01:00
Marco Pivetta
9024c04c72
Removing conditionals checking for PHP 5.4 support
2015-01-14 20:14:39 +01:00
Marco Pivetta
f14063def5
#385 #1181 DDC-3385 - splitting test case to verify interface-first fetching of metadata (via fallback logic)
2015-01-13 20:38:01 +01:00
Bart van den Burg
d66356542d
added use statement
2015-01-13 19:49:58 +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
19c52e4ae1
added failing test
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
Marco Pivetta
b6bbf6ac22
#1214 #1216 - adding @group
annotation for newly introduced test cases
2014-12-10 01:33:09 +01:00
Fedik
68ed56ce27
test for #1214 , XML export the field options
2014-12-09 20:49:51 +02:00
Marco Pivetta
78ba7f1073
#1202 - simplified test and test asset
2014-12-08 01:34:30 +01:00
Gareth Evans
c1000d23db
Added test that passes following previous commit
2014-12-08 01:31:14 +01:00
Marco Pivetta
6e8057b6ea
DDC-3434 - adding test case for HIDDEN
modifier fields in ORDER BY
sequences: should be preserved in any case
2014-12-05 17:10:39 +01:00
Marco Pivetta
0c9a898ccd
DDC-3434 - removed unneeded escaping sequences
2014-12-05 17:09:59 +01:00
Marco Pivetta
c689ff081d
DDC-3336 - adding missing type-hint docblock
2014-12-05 14:55:56 +01:00
Marco Pivetta
2bc8811e62
DDC-3336 - renamed test method for clarity
2014-12-05 14:55:26 +01:00
Marco Pivetta
42e0e6b0b8
DDC-3336 - adding failing test case: scalar expressions in the ORDER BY
clause crash the LimitSubqueryOutputWalker
2014-12-05 14:54:26 +01:00