mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #533] [CLOSED] added DiscriminatorMapEntry mapping #8339
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/533
Author: @Padam87
Created: 12/11/2012
Status: ❌ Closed
Base:
master← Head:master📝 Commits (5)
19917e8added DiscriminatorMapEntryMapping5aefa52fixed XmlDriver for DiscriminatorMapEntryb148b0eDiscriminatorMapEntry - add sub and parent classese250c7fDiscriminatorMapEntry - check ig the map has actually been modified914d5b3DiscriminatorMapEntry - moved block to after the parent classes has been set📊 Changes
5 files changed (+60 additions, -2 deletions)
View changed files
📝
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(+13 -0)➕
lib/Doctrine/ORM/Mapping/DiscriminatorMapEntry.php(+30 -0)📝
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php(+6 -1)📝
lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php(+6 -0)📝
lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php(+5 -1)📄 Description
In Symfony2, if the main entity is in a separate bundle, from a vendor, changing the DiscriminatorMap is not a good idea.
Thats why we should be able to add entries to the map.
Mapping:
yaml:
discriminatorMapEntry: keyHere
annotation:
@DiscriminatorMapEntry("keyHere")
xml:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.