DDC-3076: [GH-1006] Handling invalid discriminator values #3817

Open
opened 2026-01-22 14:28:30 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Apr 9, 2014).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of Trainmaster:

Url: https://github.com/doctrine/doctrine2/pull/1006

Message:

Two scenarios:

  • _The DiscriminatorMap is specified via metadata_. In case the entity's discriminator value is not matching with a value of the DiscriminatorMap it will result in a Notice: Undefined index ... on line 102 and exception 'Doctrine\Common\Persistence\Mapping\MappingException' with message 'Class '' does not exist' in. The proposed changes deal with this.
  • _The DiscriminatorMap is automatically generated_. The discriminator value may no longer be invalid if there's just metadata missing for the automatically generated class names. I'm not sure how to deal with that properly.
Originally created by @doctrinebot on GitHub (Apr 9, 2014). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of Trainmaster: Url: https://github.com/doctrine/doctrine2/pull/1006 Message: Two scenarios: - **_The DiscriminatorMap is specified via metadata**_. In case the entity's discriminator value is not matching with a value of the DiscriminatorMap it will result in a `Notice: Undefined index ... on line 102` and `exception 'Doctrine\Common\Persistence\Mapping\MappingException' with message 'Class '' does not exist' in`. The proposed changes deal with this. - **_The DiscriminatorMap is automatically generated**_. The discriminator value may no longer be invalid if there's just metadata missing for the automatically generated class names. I'm not sure how to deal with that properly.
admin added the Improvement label 2026-01-22 14:28:30 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3817