Skip to content

Omit implicit indexes in Table::edit()#6971

Merged
morozov merged 1 commit intodoctrine:4.3.xfrom
morozov:table-editor-omit-implicit-indexes
May 24, 2025
Merged

Omit implicit indexes in Table::edit()#6971
morozov merged 1 commit intodoctrine:4.3.xfrom
morozov:table-editor-omit-implicit-indexes

Conversation

@morozov
Copy link
Member

@morozov morozov commented May 24, 2025

Currently, when Table::edit() instantiates a TableEditor, it passes all its indexes, including the implicit ones. As a result, the indexes that were implicit in the original table become explicit in the table created by the editor, which is a bug.

The modified test demonstrates the issue. Without the changes in src/, adding a new explicit index wouldn't replace the existing implicit one, so the total number of indexes would be 2, not 1.

@morozov morozov added this to the 4.3.0 milestone May 24, 2025
@morozov morozov requested a review from greg0ire May 24, 2025 13:39
@morozov morozov marked this pull request as ready for review May 24, 2025 13:55
@morozov morozov merged commit 941dcd9 into doctrine:4.3.x May 24, 2025
82 checks passed
@morozov morozov deleted the table-editor-omit-implicit-indexes branch May 24, 2025 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants