<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue May 21 20:10: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/PHPCR-80/PHPCR-80.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>[PHPCR-80] ChildrenCollection is not updated after flush although children where added before</title>
                <link>http://www.doctrine-project.org/jira/browse/PHPCR-80</link>
                <project id="10060" key="PHPCR">Doctrine PHPCR</project>
                        <description>&lt;p&gt;If you create children of a document without adding them to the children collection of the parent (with a children annotation) the children collection is not updated after flush, you need to call $dm-&amp;gt;clear() to force a reread of the children. The current case was with a parent and its children created in the same flush.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14022">PHPCR-80</key>
            <summary>ChildrenCollection is not updated after flush although children where added before</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="lsmith">Lukas Kahwe</assignee>
                                <reporter username="uwej711">Uwe J&#228;ger</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 Sep 2012 22:15:02 +0000</created>
                <updated>Tue, 12 Mar 2013 14:10:07 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18621" author="uwej711" created="Fri, 7 Sep 2012 22:18:59 +0000"  >&lt;p&gt;Try this code:&lt;/p&gt;

&lt;p&gt;  $node1 = new Generic();&lt;br/&gt;
  $node1-&amp;gt;setParent($parent);&lt;br/&gt;
  $node1-&amp;gt;setNodename(&apos;source&apos;);&lt;br/&gt;
  $this-&amp;gt;dm-&amp;gt;persist($node1);&lt;/p&gt;

&lt;p&gt;  $this-&amp;gt;childrenNames = array(&apos;first&apos;, &apos;second&apos;, &apos;third&apos;, &apos;fourth&apos;);&lt;br/&gt;
  foreach ($this-&amp;gt;childrenNames as $childName) &lt;/p&gt;
{
      $child = new Generic();
      $child-&amp;gt;setNodename($childName);
      $child-&amp;gt;setParent($node1);
      $this-&amp;gt;dm-&amp;gt;persist($child);
  }


&lt;p&gt;  $this-&amp;gt;dm-&amp;gt;flush();&lt;br/&gt;
  $this-&amp;gt;dm-&amp;gt;clear();&lt;/p&gt;

&lt;p&gt;  $node = $this-&amp;gt;dm-&amp;gt;find(null, &apos;/functional/source&apos;);&lt;br/&gt;
  $children = $node-&amp;gt;getChildren();&lt;/p&gt;

&lt;p&gt;  // without the clear above $children === NULL, with the clear it works as expected&lt;/p&gt;
</comment>
                    <comment id="19316" author="dbu" created="Mon, 14 Jan 2013 09:08:59 +0000"  >&lt;p&gt;lukas, is this fixed with the work you did on cascading?&lt;/p&gt;</comment>
                    <comment id="19831" author="dbu" created="Tue, 12 Mar 2013 14:10:07 +0000"  >&lt;p&gt;we did a lot of refactoring on cascading lately. uwe, can you check if the problem still exists and do a pull request with a failing test if it exists?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>