1
0
Fork 0
mirror of synced 2025-03-29 11:19:50 +03:00
doctrine2/lib/Doctrine/ORM/Query
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
..
AST Make the new aggregate function definitions final. 2017-06-20 07:27:32 +02:00
Exec Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Expr Merge pull request #5756 from whyte624/master 2017-06-24 04:12:55 +02:00
Filter Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Expr.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
FilterCollection.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Lexer.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Parameter.php Fixed documentation for Doctrine\ORM\Query 2012-12-13 16:36:14 +00:00
ParameterTypeInferer.php Static Code Analysis with Php Inspections (EA Extended) 2016-11-06 14:22:47 +01:00
Parser.php Documenting thrown exception type, spacing #6162 2017-06-21 05:36:13 +02:00
ParserResult.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Printer.php Fix some LGPL occurances to MIT 2013-10-02 12:07:37 +02:00
QueryException.php #6325 adding IDE hints, type hints, replacing double quotes with single quotes 2017-06-21 08:16:24 +02:00
QueryExpressionVisitor.php Add support for STARTS_WITH and ENDS_WITH comparison operators 2017-04-30 13:19:51 +02:00
ResultSetMapping.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
ResultSetMappingBuilder.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
SqlWalker.php [QUERY] "INSTANCE OF" now behaves correctly with subclasses 2017-06-24 10:58:18 +02:00
TreeWalker.php Fixed documentation for Doctrine\ORM\Query 2012-12-13 16:36:14 +00:00
TreeWalkerAdapter.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
TreeWalkerChain.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
TreeWalkerChainIterator.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00