<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 25 11:58:51 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-163/MODM-163.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-163] @ReferenceMany and Inheritance</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-163</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;@ReferenceMany doesn&apos;t seem to work when used within a child class unless I specify @InheritanceType(&quot;CLASS_PER_COLLECTION&quot;) (which is fine b/c that works for our architecture)&lt;/p&gt;

&lt;p&gt;Here is an example from our code: &lt;/p&gt;

&lt;p&gt;//Parent Class&lt;/p&gt;

&lt;p&gt;use Doctrine\Common\Collections\ArrayCollection;&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@Document(collection=&quot;homepages&quot;)&lt;/li&gt;
	&lt;li&gt;@ChangeTrackingPolicy(&quot;DEFERRED_IMPLICIT&quot;)&lt;/li&gt;
	&lt;li&gt;@Indexes({&lt;/li&gt;
	&lt;li&gt;@Index(keys=
{&quot;vertical&quot;=&quot;asc&quot;,&quot;ts&quot;=&quot;desc&quot;}
&lt;p&gt;, safe=&quot;true&quot;),&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;@Index(keys=
{&quot;ts&quot;=&quot;desc&quot;}
&lt;p&gt;, safe=&quot;true&quot;)&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;})&lt;br/&gt;
 */&lt;br/&gt;
class Homepage extends MappedDocument&lt;br/&gt;
{&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;//** References&lt;br/&gt;
	/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ReferenceMany(targetDocument=&quot;Post&quot;)&lt;/li&gt;
	&lt;li&gt;@var	list&amp;lt;Post&amp;gt;&lt;br/&gt;
	 */&lt;br/&gt;
	protected $touts;&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;}&lt;/p&gt;


&lt;p&gt;//Child Class&lt;br/&gt;
/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@Document(collection=&quot;readmes&quot;)&lt;/li&gt;
	&lt;li&gt;@ChangeTrackingPolicy(&quot;DEFERRED_IMPLICIT&quot;)&lt;/li&gt;
	&lt;li&gt;@Indexes({&lt;/li&gt;
	&lt;li&gt;@Index(keys=
{&quot;vertical&quot;=&quot;asc&quot;}
&lt;p&gt;, safe=&quot;true&quot;)&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;})&lt;br/&gt;
 */&lt;br/&gt;
class Readme extends Homepage
{

//** References
	/**
	 * @ReferenceMany(targetDocument=&quot;Post&quot;)
	 * @var	list&amp;lt;Post&amp;gt;
	 */
	protected $more_touts;

}&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;If I don&apos;t add the @InheritanceType annotation the $more_touts data never gets persisted into the DB.&lt;br/&gt;
Other types such as @ReferenceOne all work just fine&lt;/p&gt;
</description>
                <environment>php 5.3 macosx 10.7.3   mongodb-odm 1.0 mongodb v2.0.2</environment>
            <key id="13485">MODM-163</key>
            <summary>@ReferenceMany and Inheritance</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="jsommerville">julie sommerville</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Mar 2012 18:07:13 +0000</created>
                <updated>Thu, 1 Mar 2012 18:07:13 +0000</updated>
                                                                    <component>Persister</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>