Skip to content

Remove handling unuique constraint column names as associative array#6549

Merged
derrabus merged 1 commit intodoctrine:4.3.xfrom
morozov:deprecate-associative-unique-constraint-column-names
Oct 14, 2024
Merged

Remove handling unuique constraint column names as associative array#6549
derrabus merged 1 commit intodoctrine:4.3.xfrom
morozov:deprecate-associative-unique-constraint-column-names

Conversation

@morozov
Copy link
Copy Markdown
Member

@morozov morozov commented Oct 14, 2024

Q A
Type cleanup

The dual format serves no purpose and creates ambiguity. It is supported for unique constraints but not for any other schema objects.

@morozov morozov added this to the 4.3.0 milestone Oct 14, 2024
@derrabus
Copy link
Copy Markdown
Member

Looking at the constructor of Doctrine\DBAL\Schema\UniqueConstraint, I doubt that passing columns as keys actually works. Maybe that's just dead code here?

@morozov morozov changed the title Deprecate passing unuique constraint column names as associative array Remove handling unuique constraint column names as associative array Oct 14, 2024
@morozov morozov force-pushed the deprecate-associative-unique-constraint-column-names branch from 253d2d6 to 300c0aa Compare October 14, 2024 15:17
@morozov
Copy link
Copy Markdown
Member Author

morozov commented Oct 14, 2024

@derrabus you're right. I was under the impression that this method would convert the associative array to the numeric one and pass down the line but it passes the original value. So yeah, dead code.

@derrabus
Copy link
Copy Markdown
Member

Nice catch!

@derrabus derrabus merged commit 6322f42 into doctrine:4.3.x Oct 14, 2024
@morozov morozov deleted the deprecate-associative-unique-constraint-column-names branch October 14, 2024 23:34
derrabus added a commit that referenced this pull request Oct 21, 2024
* 4.3.x:
  Create stubs instead of mocks (#6564)
  [Bug] Query Cache mangled if saved by-reference (#6552)
  test: remove ->expects(self::any())
  Fix typo in PostgreSql documentation reference
  fix
  Acknowledge the existence of 3.10 (#6553)
  Simplify tracking implicitly created indexes
  Remove handling unuique constraint column names as associative array (#6549)
  test: cover nested transactions
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants