mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 01:13:14 +02:00
DDC-3155: orm:convert-mapping drops underscores from Doctrine type names specified in DB comments #3911
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 @doctrinebot on GitHub (Jun 5, 2014).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user jflatnes:
If you run orm:convert-mapping on a schema with comments like
(DC2Type:json*array), the type name does get picked up, but the underscore is removed, so the type that ends up in the generated mapping's@Columnannotation isjsonarray, notjson*array.The underscore being removed also seems to be affecting the EntityGenerator's attempt to map to correct PHP types for the
@varannotation: that's showing up as just@var jsonarrayeven though the EntityGenerator should be mapping that toarray. So it looks like the underscore is probably getting dropped at an earlier stage.