Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2035

XML Mapping : add attribute "length" for tag "id"

    Details

    • Type: New Feature New Feature
    • Status: Awaiting Feedback
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.3
    • Fix Version/s: None
    • Component/s: Mapping Drivers
    • Security Level: All
    • Labels:
      None
    • Environment:
      Linux, Doctrine ORM 2.3.0, MySQL

      Description

      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

        Activity

        Hide
        Fabio B. Silva added a comment -

        Hi Erik,

        The atribute "id" arealdy support "length" in the current doctrine version
        : https://github.com/doctrine/doctrine2/blob/2.3/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php#L259

        Which version are you using ?

        Show
        Fabio B. Silva added a comment - Hi Erik, The atribute "id" arealdy support "length" in the current doctrine version : https://github.com/doctrine/doctrine2/blob/2.3/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php#L259 Which version are you using ?

          People

          • Assignee:
            Fabio B. Silva
            Reporter:
            Erik Müller
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: