mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Allow possibility to create unique indexes from the ORM mapping itself #5256
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @guilhermeblanco on GitHub (Sep 14, 2016).
Originally assigned to: @guilhermeblanco on GitHub.
Currently the only way we have to create unique indexes are through unique constraints, which is already misleading.
As part of ORM 3 efforts, we should allow a flag
uniqueto be defined and create a unique index. This is inline with JPA 2.1 defined in http://docs.oracle.com/javaee/7/api/javax/persistence/Index.html@guilhermeblanco commented on GitHub (Sep 15, 2016):
Done as of
3639aa9096