Doctrine Object-XML Mapper
  1. Doctrine Object-XML Mapper
  2. OXM-1

Composite string key ignoring the length attribute

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      win7 xamp mysql

      Description

      Hello, I have the following XML mapping

      <entity name="Auth" table="Auth">
      <id name="itemname" column="itemname" type="string" length="64" />
      <id name="userid" column="userid" type="string" length="64" />
      <field name="bizrule" column="bizrule" type="text" nullable="true" />
      <field name="data" column="data" type="text" nullable="true" />
      </entity>

      And the sql output is:

      CREATE TABLE Auth (itemname VARCHAR(255) NOT NULL, userid VARCHAR(255) NOT NULL, bizrule LONGTEXT DEFAULT NULL, data LONGTEXT DEFAULT NULL, PRIMARY KEY(itemname, userid)) ENGINE ...

      So, the length atrtibute is always ignored. In MyIsam it breaks the script because of the maximum key limit

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Lazar Otasevic
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: