JMSSerializerBundle icon indicating copy to clipboard operation
JMSSerializerBundle copied to clipboard

Mapping Attribute

Open jasin755 opened this issue 9 years ago • 0 comments

Hi I a similar xml:

<export time="2015-07-17 07:26:38">
       <product id="2">
        <name>KERATIN- 100% Lidské vlasy k prodloužení REMY, přírodní Blond 46,55,60cm</name>
        <code>P2/613</code>
        <manufacturer id="3">HairStar</manufacturer>
        <category id="35">Keratin</category>
    </product>
</export>

it is possible to map the attribute for "id" in <manufacturer> and <category> without having to create a new object? I need both id and string between tags.

PS: Sorry for my english.

jasin755 avatar Jul 17 '15 05:07 jasin755