1
0
Fork 0
mirror of synced 2025-04-02 04:46:16 +03:00
doctrine2/lib/Doctrine/ORM
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
..
Cache Make sure we're using the rootEntityName on all places 2017-01-19 17:24:47 +01: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 Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Internal Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Mapping Use "::class" syntax on "lib" directory 2016-12-08 17:09:35 +01:00
Persisters Remove unused arguments 2017-01-05 18:21:49 -03: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-04-11 17:50:01 +02:00
Repository Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
Tools Merge pull request #6164 from eyepin/patch-1 2016-12-12 08:30:16 +01:00
Utility Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
AbstractQuery.php Fix annotations 2017-01-10 09:12:18 +01:00
Cache.php DDC-3078 - constructor should never be interfaced 2014-04-17 15:16:56 -04:00
Configuration.php Use "::class" syntax on "lib" directory 2016-12-08 17:09:35 +01:00
EntityManager.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01: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 #6017 removed unused ORMException::invalidEntityName 2016-11-27 18:36:48 +01: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 Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01:00
QueryBuilder.php Use short-array syntax on "lib" directory 2016-12-08 00:31:12 +01: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