[OXM-1] Composite string key ignoring the length attribute Created: 29/Mar/12  Updated: 29/Mar/12

Status: Open
Project: Doctrine Object-XML Mapper
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Lazar Otasevic Assignee: Benjamin Eberlei
Resolution: Unresolved Votes: 0
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


Generated at Mon Sep 15 04:14:07 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.