Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added doc for the fields parameter of the UniqueConstraint attribute #10668

Merged
merged 1 commit into from
May 4, 2023

Conversation

stollr
Copy link
Contributor

@stollr stollr commented May 3, 2023

The description for the fields parameter of the UniqueConstraint attribute is missing at the moment (see here).

@stollr stollr force-pushed the doc_attr_uniqueconstraint branch from 64d93b7 to 77822d6 Compare May 3, 2023 08:47
@stollr stollr changed the base branch from 2.15.x to 2.14.x May 3, 2023 08:47
@SenseException SenseException changed the base branch from 2.14.x to 2.15.x May 3, 2023 20:45
@SenseException
Copy link
Member

It doesn't seem to be in use in the ORM code/tests.

@SenseException SenseException requested a review from greg0ire May 3, 2023 20:50
@@ -1104,7 +1104,8 @@ context.
Required parameters:

- **name**: Name of the Index
- **columns**: Array of columns.
- **fields**: Array of fields (the names of the properties, used in the entity class).
Copy link
Member

@greg0ire greg0ire May 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's not used in tests, how can it be a required parameter?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 nevermind, it's required to provide either columns or fields.

@greg0ire
Copy link
Member

greg0ire commented May 4, 2023

This was introduced in #8629. This is, in fact, covered by tests.

@greg0ire greg0ire added this to the 2.15.1 milestone May 4, 2023
@greg0ire greg0ire merged commit eef5a1d into doctrine:2.15.x May 4, 2023
@greg0ire
Copy link
Member

greg0ire commented May 4, 2023

Thanks @stollr

@stollr stollr deleted the doc_attr_uniqueconstraint branch May 4, 2023 11:30
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.

4 participants