mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 17:33:15 +02:00
[PR #5551] Fatal error with empty primary key in table definition #9645
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?
Original Pull Request: https://github.com/doctrine/orm/pull/5551
State: closed
Merged: No
I'm using the
DatabaseDriverbut usedsetTablesto add table information. This can result in the following error because the return value ofDoctrine\DBAL\Schema\Table:getPrimaryKeycan benull.PS: While working on a test case I also figured out there is no test for a missing primary key in general.