<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 20:26:43 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/MODM-129/MODM-129.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>[MODM-129] Storing embeded documents containing embeded documents, already persistet in another collection fails</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-129</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;We persist a document a1 containing an embedded document a1.1 which itself contains another embedded document a1.1.1. When the embedded document a1.1 is moved to another document of another collection b1 and needs to get persisted as embedded document b1.1 the embedded document a1.1.1 (which is now part of b1.1, too) is not saved as an embedded document of  b1.1.&lt;/p&gt;

&lt;p&gt;Example: We use a version object which contains a pageversion as an embedded document. This page object contains multiple elements (stored as embedded documents) which themselves contain several parameter objects (stored as embedded document of elements). Now assume we have such a persisted version and want to &quot;copy&quot; the pageversion in another collection. So we generate a new page object, and add to this page all elements of the persisted pageversion. If we now persist this page, the representation in mongodb contains all elements but not any parameters, which should be part of the page as well (as they are part of an element).&lt;/p&gt;</description>
                <environment></environment>
            <key id="12422">MODM-129</key>
            <summary>Storing embeded documents containing embeded documents, already persistet in another collection fails</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="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="kolja">Kolja Treutlein</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Feb 2011 05:36:07 +0000</created>
                <updated>Fri, 25 Feb 2011 11:39:02 +0000</updated>
                                    <version>1.0.0BETA3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15368" author="kolja" created="Fri, 25 Feb 2011 05:43:23 +0000"  >&lt;p&gt;Testcase&lt;/p&gt;</comment>
                    <comment id="15370" author="jwage" created="Fri, 25 Feb 2011 11:39:02 +0000"  >&lt;p&gt;Try cloning the embedded document when you move it. The reason why you have issues most likely is because internally inside Doctrine we keep track of each embedded document instance and what parent document it is attached to. So when you move it, Doctrine gets confused.  You need to move it by cloning so the embedded document is actually a new object instance to Doctrine.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10945" name="testcase.tar.gz" size="2333" author="kolja" created="Fri, 25 Feb 2011 05:43:23 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>