<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu Jun 20 00:46:12 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-105/MODM-105.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-105] inversedBy as ORM</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-105</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;A way to specify &quot;inversedBy&quot; when mapping referenceOne and referenceMany as the ORM have it.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12283">MODM-105</key>
            <summary>inversedBy as ORM</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="henrikbjorn">Henrik Bjornskov</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 Jan 2011 07:58:02 +0000</created>
                <updated>Fri, 4 Mar 2011 10:33:47 +0000</updated>
                    <resolved>Fri, 4 Mar 2011 10:33:47 +0000</resolved>
                            <version>1.0.0BETA2</version>
                                <fixVersion>1.0.0BETA3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15270" author="jwage" created="Fri, 11 Feb 2011 15:55:09 +0000"  >&lt;p&gt;hmm. I am not sure if having inversedBy makes sense for the mongodb odm based on how references currently work. What would it be used for? relationships in the odm don&apos;t work like they do in the orm. We don&apos;t use foreign keys to get a reference, we store a reference document on the document that is doing the referencing.&lt;/p&gt;</comment>
                    <comment id="15344" author="jwage" created="Sat, 19 Feb 2011 18:24:31 +0000"  >&lt;p&gt;Thinking about this more:&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;/** @Document */
class Product
{
    /** @ReferenceOne(targetDocument=&lt;span class=&quot;code-quote&quot;&gt;&quot;Seller&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $seller;
}

/** @Document */
class Seller
{
    /** @ReferenceMany(targetDocument=&lt;span class=&quot;code-quote&quot;&gt;&quot;Product&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;seller&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $products;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now the $products association will be loaded by running a query like this:&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;db.products.find({ &apos;seller.$id&apos; : seller.id })
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Is this what you mean?&lt;/p&gt;</comment>
                    <comment id="15352" author="henrikbjorn" created="Sun, 20 Feb 2011 07:47:37 +0000"  >&lt;p&gt;Sorry not getting back to you about this sooner. But that is exactly what i mean &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; can also be done for reference one i think &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    <comment id="15353" author="jwage" created="Sun, 20 Feb 2011 12:41:38 +0000"  >&lt;p&gt;Can you help me think through the other scenariors where it can be used? and how mappedBy would be used. We just need to be sure to think through all the semantics and define it all before I start trying to implement it.&lt;/p&gt;</comment>
                    <comment id="15355" author="jwage" created="Sun, 20 Feb 2011 22:14:42 +0000"  >&lt;p&gt;I implemented this here &lt;a href=&quot;https://github.com/doctrine/mongodb-odm/commit/d1bffbd6bb7b7b690e25f1314f1bf6b69f1e41a6&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/mongodb-odm/commit/d1bffbd6bb7b7b690e25f1314f1bf6b69f1e41a6&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Can you check it out and give some feedback?&lt;/p&gt;</comment>
                    <comment id="15358" author="henrikbjorn" created="Mon, 21 Feb 2011 02:46:44 +0000"  >&lt;p&gt;Yes i will play around with it later today &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>