Skip to content


DDC-2035: XML Mapping : add attribute "length" for tag "id" #2713

doctrinebot opened this Issue · 1 comment

1 participant


Jira issue originally created by user seros:

XML mapping :
<id name="id" type="string" length="16"/>

Generate SQL :
id varchar(255) not null

It's not possible with XML mapping to have :
id varchar(16) not null

Because tag "id" doesn't support "length" attribute.
Please add this attribute


Comment created by @FabioBatSilva:

Hi Erik,

The atribute "id" arealdy support "length" in the current doctrine version

Which version are you using ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.