1
0
Fork 0
mirror of synced 2025-04-02 04:46:16 +03:00
doctrine2/lib/Doctrine/ORM/Query
Sergio Santoro e798bfe34a
[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-04-11 17:50:01 +02:00
..
AST Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Exec Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Expr Use "::class" syntax on "lib" directory 2016-12-08 17:09:35 +01: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 DDC-2780 - Fixed issue with IS NULL on join aliases 2017-03-07 18:34:50 +01: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 Fixed many small phpcs issues 2015-12-11 20:30:41 +01:00
QueryExpressionVisitor.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01: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-04-11 17:50:01 +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