DDC-2280: Database-first convert-mapping to XML fails to add length to varchar primary key in id tag #2868

Closed
opened 2026-01-22 14:06:14 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Feb 6, 2013).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user mcaden:

In using orm:convert-mapping xml --from-database the xml that is generated for varchar columns does not receive a length attribute.

Therefore - orm:validate-schema fails and the schema tool reports that the column must change to a varchar(255) when it should be just fine with the varchar that was already there (ex. varchar(10)).

Note: I discovered this on composite keys - unsure whether this is for all or only composite.

Originally created by @doctrinebot on GitHub (Feb 6, 2013). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user mcaden: In using orm:convert-mapping xml --from-database the xml that is generated for varchar columns does not receive a length attribute. Therefore - orm:validate-schema fails and the schema tool reports that the column must change to a varchar(255) when it should be just fine with the varchar that was already there (ex. varchar(10)). Note: I discovered this on composite keys - unsure whether this is for all or only composite.
admin added the Bug label 2026-01-22 14:06:14 +01:00
admin closed this issue 2026-01-22 14:06:14 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 9, 2013):

Comment created by @beberlei:

Fixed

@doctrinebot commented on GitHub (May 9, 2013): Comment created by @beberlei: Fixed
Author
Owner

@doctrinebot commented on GitHub (May 9, 2013):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (May 9, 2013): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2868