mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Forgetting to add indexes keyword results in php error
#6550
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 @JohJohan on GitHub (Oct 6, 2020).
Forgetting to add keyword
indexeswill result in a php error example code:This will cause this PHP error:
This is caused here:
e0eb82a3b1/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php (L2356)My suggestion is to add some validation and throw a exception maby a
MappingException.I will like to do this let me know if i should.