Andreas Braun
0552749059
Fix parameter value processing for objects with unloaded metadata
2018-11-15 11:21:05 +01:00
Michael Moravec
e26158a45e
Fix #7286 : StringPrimary no longer accepts aggregate functions as argument
2018-07-09 19:12:39 +02:00
Michael Moravec
ac1e1c7d23
Fix compatibility with DBAL 2.8 where OFFSET 0 is no longer generated ( doctrine/dbal#3157 )
2018-07-03 02:14:23 +02:00
Luís Cobucci
a912fc09be
Add @group
to delete query test
2018-02-19 22:04:28 +01:00
Carnage
ae6d80daab
Adds sql generation test
2018-02-19 00:50:27 +01:00
Konstantin Kuklin
c308986a90
Fix insufficient variable check
...
To ensure that `AbstractQuery#setResultCacheProfile()` doesn't raise
errors when being called with `null`.
2017-12-17 03:21:52 +01:00
Maximilian Ruta
32c125def1
Fix syntax error when join with discriminator
2017-12-17 01:25:50 +01:00
Michael Moravec
6cb5a9c50a
Fix parameter name comparison in AbstractQuery#setParameter() with different types
2017-11-24 02:43:00 +01:00
Gocha Ossinkine
4fdbdabae4
Add DateInterval type parameter
2017-09-28 13:15:40 +05:00
Marco Pivetta
1a0bb82e1d
Merge pull request #6392 from Jean85/pr_1441_rebased
...
Correct DQL `INSTANCE OF` to filter all possible child classes
2017-08-18 21:35:54 +02:00
Stefan Siegl
99fdbf550d
generate nested join sql for CTIs, closes #6464
2017-08-11 21:36:33 +02:00
Sergio Santoro
7d98135084
[QUERY] "INSTANCE OF" now behaves correctly with subclasses
...
There was a bug in the "INSTANCE OF" operator as described in
https://groups.google.com/forum/#!topic/doctrine-user/B8raq8CNMgg
"INSTANCE OF" was not taking into account subclasses.
It was merely translating the class to its discriminator.
This is not correct since the class can have subtypes and those
are, indeed, still instance of the superclass.
Also, classes may not have a discriminator (e.g. abstract classes).
This commit also provides useful tests to avoid regression.
2017-06-24 10:58:18 +02:00
Marco Pivetta
3260d220e8
#6162 adding @group
annotation, spacing
2017-06-21 05:38:42 +02:00
SimonHeimberg
1dbc67cce1
Tests for Subqueries set expectations directly before their occurrence
2017-06-21 05:34:12 +02:00
SimonHeimberg
5b6d766961
Tests for not supported Subqueries in FROM and JOIN
2017-06-21 05:33:28 +02:00
Mathew Davies
3e3751cfd9
Remove aggregate function conditional in SqlWalker.
2017-06-20 07:27:27 +02:00
Luís Cobucci
8dccd27b52
Add the correct assertions for tests that don't have any
2017-06-12 23:05:55 +02:00
Luís Cobucci
e71272e2b4
Evict result set cache if Query#expireResultCache() was called
2017-05-02 23:25:56 +02:00
Luís Cobucci
0aef63b350
Fix quoting also when using inheritance
2017-04-30 19:36:41 +02:00
Vytautas Stankus
a557c97a93
Add support for STARTS_WITH and ENDS_WITH comparison operators
2017-04-30 13:19:51 +02:00
Sam-Burns
3d7a7346f7
Quieting risky test warnings where tests do actually perform assertions
2017-03-31 23:23:22 +01:00
Sam-Burns
5bd7bd8d48
Updating to PHPUnit 6
2017-03-31 21:59:02 +01:00
Luís Cobucci
fda6fdd9fb
Use "::class" syntax on "tests" directory
2016-12-08 18:13:39 +01:00
Luís Cobucci
74c8a08828
Use short-array syntax on "tests" directory
2016-12-07 23:33:41 +01:00
Jefersson Nathan
dbe843fc4b
remove license from header of test files
2016-10-26 13:24:33 -03:00
Sebastian Bergmann
9da83cfae8
Make test suite compatible with PHPUnit 5.4.
...
* Use createMock() and getMockBuilder() instead of getMock()
* Use expectException() and expectExceptionMessage() instead of setExpectedException()
2016-06-18 13:01:59 +02:00
Mikhail Shamin
b173763bbb
Remove full qualified class names in tests
2016-05-11 03:00:44 +07:00
Mikhail Shamin
bf322b903d
Optimize imports. Remove full qualified class names
2016-05-11 01:55:12 +07:00
Alessandro Lai
d7e7baf2a2
Regression test: HAVING clause does not translate variable name when used with * and / math operators
2016-01-08 17:56:41 +01:00
Guilherme Blanco
cdfcca2ff2
Merge pull request #1455 from xoeoro/patch-1
...
Update ExprTest.php
2015-11-15 22:12:36 -05:00
Guilherme Blanco
443259f629
Some extra refinement over patch
2015-11-09 03:19:11 +00:00
Matthias Pigulla
b7bd42638d
Fix for DDC-3697 and DDC-3701
...
Also fix Lexer::match() so it does not accept T_WHERE when T_WITH is supposed to be matched. (DDC-3701)
2015-11-09 03:19:11 +00:00
Alex Vasilenko
c8d2ac40f4
fixes result cache setting query caching
2015-11-07 16:14:54 +00:00
Guilherme Blanco
d7a3154954
Merge pull request #1397 from giosh94mhz/concat_expr_variable_arguments
...
Add Expr::concat support for multiple arguments
2015-11-07 10:45:04 -05:00
Guilherme Blanco
843966ac50
General fixes across CS, type resolving, test fixes, etc
2015-11-07 03:55:05 +00:00
Giorgio Premi
16172534bb
Add Expr::concat support for multiple arguments
2015-09-10 17:01:09 +02: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
xoeoro
44557a5afa
Update ExprTest.php
...
expr()->countDistinct allows to create COUNT(DISTINCT) expression with mulltiple fields but parser requires only one field.
\Doctrine\ORM\Query\Parser::AggregateExpression
some body, please, fix this problem
2015-07-13 10:45:17 +03:00
Benjamin Eberlei
8d1be42924
[DDC-3741] Add test for AbstractQuery#setHydrationCacheProfile(null)
2015-06-16 21:56:25 +02:00
Marco Pivetta
376e74fb7e
#1333 - minor CS fixes - spacing/PSR-2
2015-03-17 20:59:56 +00:00
Jan Langer
8ac66bb608
Allow DateTimeInterface as parameter value
2015-03-17 20:58:20 +00:00
Kiel Goodman
349966832f
[DDC-3436] Convert short array syntax to legacy style
2015-01-17 08:33:23 +01:00
Kiel Goodman
918d2910d9
[DDC-3108] Fix regression introduced in DDC-2764 where join aliases were no longer accessible in Criteria expressions
2015-01-17 08:33:23 +01:00
Guilherme Blanco
a1d77bdc65
Renamed coll to collection and some small updates to tests.
2015-01-15 03:14:48 +00:00
Marco Pivetta
264cd8ee11
#615 - Refactoring test case to remove duplication
2014-10-19 17:21:13 +02:00
Marco Pivetta
69494dc624
#615 - sql table aliases should stay constant over time
2014-10-19 17:18:30 +02:00
Marco Pivetta
10da2eb85b
#615 - Using a data provider to build aliases for the SqlWalkerTest
2014-10-19 17:16:07 +02:00
Marco Pivetta
17c9388473
#615 - Test coverage annotations
2014-10-19 17:10:39 +02:00
Marco Pivetta
435befd25c
#615 - EOF EOL fixes
2014-10-19 17:09:41 +02:00
Marco Pivetta
d557a0e01b
#615 - assignment alignment
2014-10-19 17:09:27 +02:00