[PR #342] [CLOSED] Fix identifier generator strategy for composite identifier #8051

Open
opened 2026-01-22 15:58:09 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/342
Author: @jeanmonod
Created: 4/26/2012
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 8b24245 Fix identifier generator strategy for composite identifier

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/Tools/Export/Driver/YamlExporter.php (+9 -1)

📄 Description

When using the ConvertMappingCommand on a schema that contain a table with a composite key, we got the exception:

Single id is not allowed on composite primary key in entity CollectionFields

This can be fix by setting the identifier strategy to NONE for composite identifier fields


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/342 **Author:** [@jeanmonod](https://github.com/jeanmonod) **Created:** 4/26/2012 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`8b24245`](https://github.com/doctrine/orm/commit/8b242455b77c3765bc70541e0701efb302d05119) Fix identifier generator strategy for composite identifier ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Tools/Export/Driver/YamlExporter.php` (+9 -1) </details> ### 📄 Description When using the ConvertMappingCommand on a schema that contain a table with a composite key, we got the exception: ``` Single id is not allowed on composite primary key in entity CollectionFields ``` This can be fix by setting the identifier strategy to NONE for composite identifier fields --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:58:09 +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#8051