mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Unique constraint definition #7438
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 @klosto on GitHub (Nov 11, 2024).
Bug Report
Error in unique constraint definition
Summary
When I tried to define unique constraint in
ORM\Table()annotation, it didn't even created any setting in migration. Then I tried to define it in separated annotation like #[ORM\UniqueConstraint] and it worked.Am I doing something wrong, or is it expected behavior?