<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed Jun 19 13:13:14 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-168/MODM-168.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-168] Can&apos;t Use Custom Repository Class for Embedded Doc When Using YAML Driver</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-168</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;When using the Yaml driver the ClassMetadata generation process won&apos;t create and use the indicated custom repository class for an embedded document. From what I can see digging into the actual code, it will work when using the Annotations or XML drivers, but in the Yaml driver the call to setCustomRepositoryClass is inside of a conditional that only gets entered if the document type is &apos;document&apos;.&lt;/p&gt;

&lt;p&gt;I&apos;m not completely sure, but from what I can see elsewhere in the code, it looks like mapped superclasses should also be able to have a custom repository class, but can&apos;t when using the Yaml driver. &lt;/p&gt;

&lt;p&gt;So I reckon what would work would be to change the code as indicated below:&lt;/p&gt;

&lt;p&gt;&amp;lt;&amp;lt;EXISTING CODE&amp;gt;&amp;gt;&lt;br/&gt;
//Doctrine/ODM/MongoDb/Mapping/Driver/YamlDriver.php, line 66&lt;br/&gt;
       if ($element&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;type&amp;#39;&amp;#93;&lt;/span&gt; == &apos;document&apos;) {&lt;br/&gt;
            if (isset($element&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;repositoryClass&amp;#39;&amp;#93;&lt;/span&gt;)) &lt;/p&gt;
{
                $class-&amp;gt;setCustomRepositoryClass($element[&apos;repositoryClass&apos;]);
            }
&lt;p&gt;        } elseif ($element&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;type&amp;#39;&amp;#93;&lt;/span&gt; === &apos;mappedSuperclass&apos;) &lt;/p&gt;
{
            $class-&amp;gt;isMappedSuperclass = true;
        }
&lt;p&gt; elseif ($element&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;type&amp;#39;&amp;#93;&lt;/span&gt; === &apos;embeddedDocument&apos;) &lt;/p&gt;
{
            $class-&amp;gt;isEmbeddedDocument = true;
        }

&lt;p&gt;&amp;lt;&amp;lt;TO THIS&amp;gt;&amp;gt;&lt;br/&gt;
        if (isset($documentAnnot-&amp;gt;repositoryClass)) &lt;/p&gt;
{
            $class-&amp;gt;setCustomRepositoryClass($element[&apos;repositoryClass&apos;]);
        }</description>
                <environment></environment>
            <key id="13896">MODM-168</key>
            <summary>Can&apos;t Use Custom Repository Class for Embedded Doc When Using YAML Driver</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="isac1984">Isaac Foster</reporter>
                        <labels>
                    </labels>
                <created>Sun, 29 Jul 2012 23:42:17 +0000</created>
                <updated>Sun, 29 Jul 2012 23:42:17 +0000</updated>
                                                                    <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>