When using the ConvertMappingCommand on a schema that contain a table with a composite key, we got the exception:
Single id is not allowed on composite primary key in entity CollectionFields
This can be fix by setting the identifier strategy to NONE for composite identifier fields
Fix identifier generator strategy for composite identifier
Hm, apart from the CS issues in your code, I'm wondering if setting the identifier strategy to NONE is the appropriate solution here.
ping @beberlei @guilhermeblanco
I'm not sure if it's there is an other appropriate strategy available. But I think that with composite identifiers, it can't be an automatic strategy? Isn't it?
BTW, what mean "CS issues"?
@jeanmonod CS means Coding Standards
[DDC-1798] Exporter generate error when composite primary key is gene…
…rated. Fixes GH-342
Maybe this patch needs to be ported on XmlExporter.php as well ? Because bug [DDC-1798] is also affecting XML exporter.
@odoucet please send a pull request