<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue Jun 18 04:41:08 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/si/jira.issueviews:issue-xml/DDC-2300/DDC-2300.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DDC-2300] Xmldriver does not convert the version field to boolean but keeps it as a SimpleXMLElement which breaks serialization</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2300</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Serialization breaks because the cache driver tries to serialize the ClassMetaData instance containing a simplexml element:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
Doctrine\ORM\Mapping\ClassMetadata &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;
(
    [fieldMappings] =&amp;gt; Array
        (
            [version] =&amp;gt; Array
                (
                    [fieldName] =&amp;gt; version
                    [type] =&amp;gt; integer
                    [columnName] =&amp;gt; version
                    [version] =&amp;gt; SimpleXMLElement &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;
                        (
                            [0] =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
                        )

                    [&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;] =&amp;gt; 1
                    [declared] =&amp;gt; path to entity
                )
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The fix is simple change in the columnToArray method in the XML driver class:&lt;/p&gt;

&lt;p&gt;changing:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$mapping[&apos;version&apos;] = $fieldMapping[&apos;version&apos;];
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;to:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$mapping[&apos;version&apos;] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;evaluateBoolean($fieldMapping[&apos;version&apos;]);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14487">DDC-2300</key>
            <summary>Xmldriver does not convert the version field to boolean but keeps it as a SimpleXMLElement which breaks serialization</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jaco">Jaco Stienstra</reporter>
                        <labels>
                    </labels>
                <created>Sat, 16 Feb 2013 18:18:44 +0000</created>
                <updated>Thu, 14 Mar 2013 22:22:17 +0000</updated>
                    <resolved>Thu, 14 Mar 2013 22:22:17 +0000</resolved>
                            <version>2.3.2</version>
                                <fixVersion>2.3.3</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>