mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2029: [GH-445] Allow to add non existing maped class #2557
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?
Originally created by @doctrinebot on GitHub (Sep 13, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @beberlei:
This issue is created automatically through a Github pull request on behalf of goetas:
Url: https://github.com/doctrine/doctrine2/pull/445
Message:
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.@doctrinebot commented on GitHub (Sep 13, 2012):
Comment created by @beberlei:
A related Github Pull-Request [GH-445] was closed
https://github.com/doctrine/doctrine2/pull/445
@doctrinebot commented on GitHub (Sep 17, 2012):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Dec 13, 2013):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-445] was closed:
https://github.com/doctrine/dbal/pull/445