DDC-886: Mapped Supperclass composite identifier is ignored in child class #1099

Open
opened 2026-01-22 13:02:01 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 21, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user gediminasm:

Currently $class->isIdentifierComposite value stays "false" if no new identifiers were added on child class..

patch proposal:
around line 270, file: ClassMetadataFactory.php

add line:
$class->isIdentifierComposite = $parent->isIdentifierComposite;

this way if supperclass had composite identifier and child had none identifiers
the result would be as suspected.

Originally created by @doctrinebot on GitHub (Nov 21, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user gediminasm: Currently $class->isIdentifierComposite value stays "false" if no new identifiers were added on child class.. patch proposal: around line 270, file: ClassMetadataFactory.php add line: $class->isIdentifierComposite = $parent->isIdentifierComposite; this way if supperclass had composite identifier and child had none identifiers the result would be as suspected.
admin added the Bug label 2026-01-22 13:02:01 +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#1099