<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 03:35:42 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-70/PHPCR-70.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-70] ContentDocument Relationships returning NULL in Action</title>
                <link>http://www.doctrine-project.org/jira/browse/PHPCR-70</link>
                <project id="10060" key="PHPCR">Doctrine PHPCR</project>
                        <description>&lt;p&gt;So i have 2 Documents:&lt;/p&gt;

&lt;p&gt;Page: &lt;a href=&quot;http://pastebin.com/b5X32JPc&quot; class=&quot;external-link&quot;&gt;http://pastebin.com/b5X32JPc&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Category: &lt;a href=&quot;http://pastebin.com/A1gB6kyg&quot; class=&quot;external-link&quot;&gt;http://pastebin.com/A1gB6kyg&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A Category has many pages.&lt;/p&gt;

&lt;p&gt;Now here&apos;s my (test) action: &lt;a href=&quot;http://pastebin.com/ypjxqZPu&quot; class=&quot;external-link&quot;&gt;http://pastebin.com/ypjxqZPu&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see, $contentDocument is a page in this case. If i call $contentDocument-&amp;gt;category i get back &quot;null&quot;.&lt;/p&gt;

&lt;p&gt;If however i tell the document manager to fetch the Page document by it&apos;s path, then $contentDocument-&amp;gt;category will work...&lt;/p&gt;

&lt;p&gt;Our conclusion is that if you take the $contentDocument that is passed to your action, and you try to fetch it&apos;s ParentDocument inside the action (mapped to a property) you always get null.&lt;br/&gt;
However, what is very weird, is that inside twig it works (page.category would work in twig but page-&amp;gt;category would return null inside the action, before the twig render)&lt;/p&gt;</description>
                <environment></environment>
            <key id="13758">PHPCR-70</key>
            <summary>ContentDocument Relationships returning NULL in Action</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>
                                <assignee username="lsmith">Lukas Kahwe</assignee>
                                <reporter username="freddyh">Freddy H.</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Jun 2012 20:55:15 +0000</created>
                <updated>Sat, 21 Jul 2012 14:26:04 +0000</updated>
                    <resolved>Sat, 21 Jul 2012 14:26:04 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18046" author="dbu" created="Wed, 6 Jun 2012 21:32:21 +0000"  >&lt;p&gt;this might be a bug of combining reference with parent.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;23:06&amp;#93;&lt;/span&gt; &amp;lt;dbu&amp;gt; look at vendor/doctrine/phpcr-odm/tests/Doctrine/Tests/ODM/PHPCR/Functional/HierarchyTest.php&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;23:07&amp;#93;&lt;/span&gt; &amp;lt;dbu&amp;gt; and create a new test that tries to load node C, follow its reference to node B and check if its parent A is not null&lt;/p&gt;</comment>
                    <comment id="18362" author="lsmith" created="Sat, 21 Jul 2012 13:21:56 +0000"  >&lt;p&gt;i have managed to reproduce the bug .. i am looking into fixing it now.&lt;/p&gt;</comment>
                    <comment id="18363" author="lsmith" created="Sat, 21 Jul 2012 14:26:04 +0000"  >&lt;p&gt;fixed in master&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>