1
0
Fork 0
mirror of synced 2025-04-01 20:36:14 +03:00
Doctrine 2 Object Relational Mapper (ORM)
Find a file
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
bin Use short-array syntax on "bin" directory 2016-12-07 23:34:14 +01:00
docs Merge pull request #5787 from iBet7o/patch-doc 2017-06-24 04:05:41 +02:00
lib/Doctrine/ORM [QUERY] "INSTANCE OF" now behaves correctly with subclasses 2017-06-24 10:58:18 +02:00
tests [QUERY] "INSTANCE OF" now behaves correctly with subclasses 2017-06-24 10:58:18 +02:00
tools/sandbox Use short-array syntax on "tools" directory 2016-12-07 23:32:17 +01:00
.gitattributes Remove README.markdown from .gitattributes 2013-01-19 20:04:43 +01:00
.gitignore Added composer.lock to .gitignore 2013-03-07 14:12:10 +01:00
.gitmodules Removing submodules as of doctrine/doctrine2#570 2013-02-15 18:33:29 +01:00
.scrutinizer.yml Configure build failure conditions 2017-06-20 14:06:40 +02:00
.travis.yml Create schema based on config file (on MySQL & MariaDB) 2017-06-23 11:21:36 +02:00
build.properties New Build process 2013-09-07 12:56:49 +02:00
build.properties.dev Add support to distribute the XSD to a given directory during build process 2011-08-27 13:23:17 +02:00
build.xml New Build process 2013-09-07 12:56:49 +02:00
composer.json Bump versions of some dependencies 2017-06-19 17:43:38 +02:00
CONTRIBUTING.md Removing section about jira as it has been removed. 2016-02-17 11:02:19 +01:00
doctrine-mapping.xsd Merge pull request #6389 from mikeSimonson/xml-dtd-improvements 2017-06-21 08:08:14 +02:00
LICENSE Updated year range 2015-09-29 22:52:45 +00:00
phpunit.xml.dist Fixed typos 2013-03-11 00:08:58 +00:00
README.md Removes support for PHP 5.x 2017-01-02 08:36:42 +00:00
run-all.sh Fixed typos 2013-03-11 00:08:58 +00:00
SECURITY.md Add SECURITY.md and a chapter on security assumptions in Doctrine ORM. 2014-02-21 16:12:32 +01:00
UPGRADE.md #6325 documenting minor BC break introduced by adding a required parameter to the exception named constructor 2017-06-21 08:20:20 +02: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: