mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #374] [CLOSED] Get parent classes #8103
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/374
Author: @TomHAnderson
Created: 6/14/2012
Status: ❌ Closed
Base:
master← Head:getParentClasses📝 Commits (10+)
212e1d6Fix notice when using regenerate if exists and file is not new.0b6b879[DDC-1601] Fix bugs in SchemaValidator, using all modelsets as testdata for a large testfb85cdf[DDC-1601] Fix failing test and remove unused code1574d48Merge branch 'DDC-1601' into 2.245fbc05Merge remote-tracking branch 'origin/2.2' into 2.2b6896a0DDC-1585 - Throw exception if setting target entity of the wrong type to an assocation.7d77373Merge branch 'DDC-1585' into 2.2e058b47DDC-1594 - Fix problem with merge and an existing managed proxy instance.789ce16Merge branch 'DDC-1594' into 2.2a37aabbPass options attribute in @Column annotation to Schema\Column's customSchemaOptions📊 Changes
103 files changed (+3855 additions, -309 deletions)
View changed files
📝
UPGRADE_TO_2_2(+6 -1)📝
build.xml(+2 -2)📝
composer.json(+2 -2)📝
doctrine-mapping.xsd(+1 -0)📝
lib/Doctrine/ORM/AbstractQuery.php(+171 -3)📝
lib/Doctrine/ORM/Configuration.php(+22 -0)📝
lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(+15 -0)📝
lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php(+1 -1)📝
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(+22 -17)📝
lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php(+1 -12)📝
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(+1 -1)📝
lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(+16 -4)📝
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php(+19 -13)📝
lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php(+23 -5)📝
lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php(+4 -0)📝
lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php(+8 -3)📝
lib/Doctrine/ORM/Mapping/ManyToMany.php(+2 -0)📝
lib/Doctrine/ORM/PersistentCollection.php(+33 -3)📝
lib/Doctrine/ORM/Persisters/AbstractCollectionPersister.php(+1 -1)📝
lib/Doctrine/ORM/Persisters/BasicEntityPersister.php(+5 -10)...and 80 more files
📄 Description
Added function get parent classes to ClassMetadataInfo.
I added this function to differentiate between inherited entities and traditional entities. We are using a modified version of SimpleThings audit reader and inherited entities can't be audited this way, the parent entity must. The code was iterating over the list of entities and I broke out when an entity has parent classes, using this function.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.