1
0
mirror of synced 2025-03-06 21:06:16 +03: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
2013-03-07 14:12:10 +01:00
2013-09-07 12:56:49 +02:00
2013-09-07 12:56:49 +02:00
2015-09-29 22:52:45 +00:00
2013-03-11 00:08:58 +00:00
2017-01-02 08:36:42 +00:00
2013-03-11 00:08:58 +00:00

Master 2.5
Build status Build status
Coverage Status Coverage Status

Doctrine 2 is an object-relational mapper (ORM) for PHP 7.0+ that provides transparent persistence for PHP objects. It sits on top of a powerful database abstraction layer (DBAL). One of its key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL), inspired by Hibernate's HQL. This provides developers with a powerful alternative to SQL that maintains flexibility without requiring unnecessary code duplication.

More resources:

Description
Doctrine 2 Object Relational Mapper (ORM)
Readme MIT 32 MiB
Languages
PHP 100%