DDC-3155: orm:convert-mapping drops underscores from Doctrine type names specified in DB comments #3911

Open
opened 2026-01-22 14:31:18 +01:00 by admin · 0 comments
Owner

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 @Column annotation is jsonarray, not json*array.

The underscore being removed also seems to be affecting the EntityGenerator's attempt to map to correct PHP types for the @var annotation: that's showing up as just @var jsonarray even though the EntityGenerator should be mapping that to array. So it looks like the underscore is probably getting dropped at an earlier stage.

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 `@Column` annotation is `jsonarray`, not `json*array`. The underscore being removed also seems to be affecting the EntityGenerator's attempt to map to correct PHP types for the `@var` annotation: that's showing up as just `@var jsonarray` even though the EntityGenerator should be mapping that to `array`. So it looks like the underscore is probably getting dropped at an earlier stage.
admin added the Bug label 2026-01-22 14:31:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3911