Marco Pivetta
342ab2f7f1
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:15:48 +01:00
Guilherme Blanco
04789dfec7
Merge pull request #1443 from meeuw/unsigned
...
Unsigned
2015-11-15 22:16:15 -05:00
vershnik
96398ba30f
remove indexes overruled by primary key
...
There can be unique indexes automatically created for join column.
If join column is also primary key we should keep only primary key on this column.
Oracle does not allow having both unique index and primary key on the same column, it is useless for mysql too.
(Previously it was done by DBAL, but now it allows duplicate indexes)
2015-11-16 02:49:41 +00:00
Guilherme Blanco
ada97d55ce
Merge pull request #1375 from webimpress/fix/DDC-3671
...
DDC-3671 prevent duplicate unique index
2015-11-07 11:44:02 -05:00
Marco Pivetta
28cebeca1c
Merge pull request #1407 from aivus/patch-1
...
Add return to removeMethodTemplate
2015-11-06 23:11:42 -05:00
Guilherme Blanco
843966ac50
General fixes across CS, type resolving, test fixes, etc
2015-11-07 03:55:05 +00:00
Ilya Antipenko
60b80c95cc
Add phpdoc tests for addXxx() and removeXxx() methods
...
Add tests for return types for addXxx() and removeXxx() methods
2015-10-17 17:14:56 +03:00
Marco Pivetta
a0a0c731bb
Merge pull request #1457 from phansys/short_types
...
Updated syntax for "integer" and "boolean" types
2015-09-05 17:21:05 +02:00
Andy Cook
26c295b06b
Added non-functional tests for row number over function subselect expression fix; syntax fixes.
2015-07-17 13:24:19 +01:00
Javier Spagnoletti
97cc49033e
Updated syntax for ``integer
` and
`boolean
`` types
...
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
Used short syntax for ```integer``` and ```boolean``` types.
**Before**
```php
/**
* @var integer
*
* @ORM\Column(name="some_integer_field", type="integer")
*/
private $someIntegerField;
/**
* @var boolean
*
* @ORM\Column(name="some_boolean_field", type="boolean")
*/
private $someBooleanField;
```
**After**
```php
/**
* @var int
*
* @ORM\Column(name="some_integer_field", type="integer")
*/
private $someIntegerField;
/**
* @var bool
*
* @ORM\Column(name="some_boolean_field", type="boolean")
*/
private $someBooleanField;
```
2015-07-14 15:30:13 -03:00
Dick Marinus
4a39754e76
unsigned is in fieldMapping['options']
2015-07-09 20:54:04 +02:00
Filip Procházka
192da14842
Failing test case for broken paginator case
2015-04-09 01:42:46 +02:00
Michał Bundyra
699a6e1783
prevent duplicate unique index
2015-04-08 10:49:21 +01: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