[PR #6554] Move identifier generation to FieldMetadata #10031

Open
opened 2026-01-22 16:06:12 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/6554

State: closed
Merged: Yes


Removed ClassMetadata::$generatorType, ClassMetadata::$generatorDefinition and ClassMetadata::$idGenerator and related methods.

Some pieces of code (UoW in particular) are not really nice because of original assumptions about single vs. composite keys and generator types, but it'll eventually undergo further reactorings and generalization soon with introduction of ValueGenerationPlan...

Removed two tests:

  • Functional\Ticket\DDC2415Test - tested id generator inheritance which no longer exists
  • Mapping\ClassMetadataTest::testSetSequenceGeneratorThrowsExceptionWhenSequenceNameIsMissing - tested setGeneratorDefinition() method that was removed

Default test suite passes, test suite w/ postgres has same number of failures compared to develop.

Working version of #6551.

**Original Pull Request:** https://github.com/doctrine/orm/pull/6554 **State:** closed **Merged:** Yes --- Removed ClassMetadata::$generatorType, ClassMetadata::$generatorDefinition and ClassMetadata::$idGenerator and related methods. Some pieces of code (UoW in particular) are not really nice because of original assumptions about single vs. composite keys and generator types, but it'll eventually undergo further reactorings and generalization soon with introduction of ValueGenerationPlan... Removed two tests: * Functional\Ticket\DDC2415Test - tested id generator inheritance which no longer exists * Mapping\ClassMetadataTest::testSetSequenceGeneratorThrowsExceptionWhenSequenceNameIsMissing - tested setGeneratorDefinition() method that was removed Default test suite passes, test suite w/ postgres has same number of failures compared to develop. _Working version of #6551._
admin added the pull-request label 2026-01-22 16:06:12 +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#10031