[PR #762] [MERGED] YAML mapping documentation of uniqueConstraint #8670

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/762
Author: @stollr
Created: 8/20/2013
Status: Merged
Merged: 9/8/2013
Merged by: @beberlei

Base: masterHead: yaml_reference_ext


📝 Commits (1)

  • a765f2e added yaml mapping documentation of uniqueConstraint

📊 Changes

1 file changed (+18 additions, -0 deletions)

View changed files

📝 docs/en/reference/yaml-mapping.rst (+18 -0)

📄 Description

I have provided an example of YAML mapping for unique constraints which is equivalent to the annotation reference for unique constraints.

It is really basic, but I think better than nothing. Because there are severall people who search for that.

See

I felt the need of that doc, too ;)


🔄 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/762 **Author:** [@stollr](https://github.com/stollr) **Created:** 8/20/2013 **Status:** ✅ Merged **Merged:** 9/8/2013 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `yaml_reference_ext` --- ### 📝 Commits (1) - [`a765f2e`](https://github.com/doctrine/orm/commit/a765f2e3b65d65473bdf94724b885f16574ff5f0) added yaml mapping documentation of uniqueConstraint ### 📊 Changes **1 file changed** (+18 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/en/reference/yaml-mapping.rst` (+18 -0) </details> ### 📄 Description I have provided an example of YAML mapping for unique constraints which is equivalent to the [annotation reference for unique constraints](http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/annotations-reference.html#annref-uniqueconstraint). It is really basic, but I think better than nothing. Because there are severall people who search for that. See - http://stackoverflow.com/questions/8893473/how-to-add-a-constraint-index-in-yaml-doctrine-2 - http://stackoverflow.com/questions/7347581/how-to-create-a-unique-constraints-in-yml-in-doctrine2 - http://www.ozonesolutions.com/programming/2011/08/symfony-with-doctrine-multiple-unique-columns/ I felt the need of that doc, too ;) --- <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 16:01:00 +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#8670