1
0
Fork 0
mirror of synced 2025-04-01 20:36:14 +03:00
doctrine2/lib/Doctrine/ORM
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
..
Cache Merge pull request #6245 from lcobucci/l2c-use-getMultiple 2017-06-24 09:17:55 +02:00
Decorator make lock mode usage consistent 2014-02-05 15:13:53 +01:00
Event fix license header inconsistencies 2016-10-25 23:58:42 -03:00
Id #6167 #6168 - clarifying on the reasoning why query is used instead of fetchColumn 2017-06-21 05:44:58 +02:00
Internal #1515 removing redundant assignment, short array notation 2017-06-24 03:27:12 +02:00
Mapping minor code work: 2017-06-08 22:04:07 +02:00
Persisters minor code work: 2017-06-08 22:04:07 +02:00
Proxy Use "::class" syntax on "lib" directory 2016-12-08 17:09:35 +01:00
Query [QUERY] "INSTANCE OF" now behaves correctly with subclasses 2017-06-24 10:58:18 +02:00
Repository Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Tools Merge pull request #6494 from astepin/gh-6356 2017-06-23 12:54:29 +02:00
Utility Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
AbstractQuery.php minor code work: 2017-06-08 22:04:07 +02:00
Cache.php DDC-3078 - constructor should never be interfaced 2014-04-17 15:16:56 -04:00
Configuration.php Remove @throws in Configuration where necessary. 2017-06-20 07:27:25 +02:00
EntityManager.php minor code work: 2017-06-08 22:04:07 +02:00
EntityManagerInterface.php fix license header inconsistencies 2016-10-25 23:58:42 -03:00
EntityNotFoundException.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
EntityRepository.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Events.php #385 #1181 DDC-3385 - fixing Events docblocks as per @deeky666's review 2015-01-13 21:15:34 +01:00
LazyCriteriaCollection.php Fixed many small phpcs issues 2015-12-11 20:30:41 +01:00
NativeQuery.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
NonUniqueResultException.php Fixed unused 'use' statements. 2012-12-13 18:19:21 +00:00
NoResultException.php Fixed missed documentation issues in Doctrine\ORM 2012-12-14 20:12:56 +00:00
OptimisticLockException.php Fixed many small phpcs issues 2015-12-11 20:30:41 +01:00
ORMException.php No longer treat aggregate functions as a special case. 2017-06-20 07:27:24 +02:00
ORMInvalidArgumentException.php #6017 moved ORMException::invalidEntityName to ORMInvalidArgumentException::invalidEntityName 2016-11-27 18:36:48 +01:00
PersistentCollection.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
PessimisticLockException.php Fix some LGPL occurances to MIT 2013-10-02 12:07:37 +02:00
Query.php minor code work: 2017-06-08 22:04:07 +02:00
QueryBuilder.php Update QueryBuilder.php 2017-05-23 18:42:01 +02:00
TransactionRequiredException.php Fix some LGPL occurances to MIT 2013-10-02 12:07:37 +02:00
UnexpectedResultException.php Fixed unused 'use' statements. 2012-12-13 18:19:21 +00:00
UnitOfWork.php #6174 #5570 removed unused/dead code 2016-12-18 14:45:08 +01:00
Version.php Bumping version to 2.6.0-DEV 2015-04-02 21:42:47 +01:00