mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #445] [CLOSED] Allow to add non existing maped class #8201
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/445
Author: @goetas
Created: 9/13/2012
Status: ❌ Closed
Base:
master← Head:class-metadata📝 Commits (1)
bae3681allow to add non existing maped class📊 Changes
1 file changed (+1 additions, -4 deletions)
View changed files
📝
lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(+1 -4)📄 Description
I've extended
Doctrine\ORM\Mapping\Driver\DatabaseDriverwith a more complicated schema conversion tool (that supports inheritance too).i'm generating xml metadata starting from databse schema, then i generate entities starting from xml.
inside
DatabaseDriver::loadMetadataForClass()i wanna call$metadata->addDiscriminatorMapClass($discriminatorValue, $myClassName);$myClassNameat this point, probably does not exists, soaddDiscriminatorMapClassthrows an exception. i've removed class existence check to allow this behaviour.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.