1
0
mirror of synced 2024-12-05 03:06:05 +03:00
Doctrine 2 Object Relational Mapper (ORM)
Go to file
Bill Schaller 4b10db3a43 Fix crashes in ConvertMappingCommand and GenerateEntitiesCommand when using entities with joined table inheritance
ConvertMappingCommand and GenerateEntitiesCommand both use the DisconnectedClassMetadataFactory, which allows metadata manipulation without loading the associated classes. Commit a36bea broke these two commands by adding a bailout condition in ClassMetadataFactory::populateDiscriminatorValue which checks $metadata->reflClass->isAbstract(). If the DisconnectedClassMetadataFactory is being used, $metadata->reflClass will always be null, causing a fatal error, "Fatal error: Call to a member function isAbstract() on null".

This commit adds a check to see if $metadata->reflClass is set before checking isAbstract.
2015-03-20 13:59:27 -04:00
bin Fix the composer autoload paths for the doctrine CLT 2014-07-24 09:52:55 -04:00
docs Minor fixes and typos 2015-03-18 17:27:31 +01:00
lib Fix crashes in ConvertMappingCommand and GenerateEntitiesCommand when using entities with joined table inheritance 2015-03-20 13:59:27 -04:00
tests [DDC-3461] Renamed AssocationBuilder::isPrimaryKey() to makePrimaryKey(). Same for FieldBuilder and depreceating isPrimaryKey(). Adjust tests. Revert change in ClassMetadataInfo and fix bug. 2015-03-18 17:06:30 +01:00
tools/sandbox Region cache clear commands 2013-12-16 11:05:05 -05:00
.coveralls.yml Simplify build matrix 2014-03-01 17:13:28 -05: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
.travis.yml travis: PHP 7.0 nightly added 2015-03-02 20:41:50 +01: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 Added dependency with doctrine/cache 1.4 2015-01-17 22:27:59 +01:00
CONTRIBUTING.md Update CONTRIBUTING.md 2013-12-14 11:29:07 +01:00
doctrine-mapping.xsd Adding use-column-prefix attribute as proposed (DDC-3293) #1239 2015-01-08 00:09:30 -02:00
LICENSE LGPL => MIT 2012-05-26 14:37:00 +02:00
phpunit.xml.dist Fixed typos 2013-03-11 00:08:58 +00:00
README.markdown Typo fix 2015-01-25 23:54:59 +01: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 #1257 DDC-3300 DDC-3503 - providing upgrade notes for the breaking change in discriminator map declarations 2015-01-24 09:14:58 +01:00

Master 2.4 2.3 2.2 2.1
Build status Build status Build status Build status Build status
Coverage Status

Doctrine 2 is an object-relational mapper (ORM) for PHP 5.4+ 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: