DDC-2029: [GH-445] Allow to add non existing maped class #2557

Closed
opened 2026-01-22 13:56:58 +01:00 by admin · 3 comments
Owner

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\DatabaseDriver with 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);

$myClassName at this point, probably does not exists, so addDiscriminatorMapClass throws an exception. i've removed class existence check to allow this behaviour.

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\DatabaseDriver` with 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);` `$myClassName` at this point, probably does not exists, so `addDiscriminatorMapClass` throws an exception. i've removed class existence check to allow this behaviour.
admin added the Bug label 2026-01-22 13:56:58 +01:00
admin closed this issue 2026-01-22 13:57:00 +01:00
Author
Owner

@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 13, 2012): Comment created by @beberlei: A related Github Pull-Request [GH-445] was closed https://github.com/doctrine/doctrine2/pull/445
Author
Owner

@doctrinebot commented on GitHub (Sep 17, 2012):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Sep 17, 2012): Issue was closed with resolution "Invalid"
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2557