<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sun May 26 03:02: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/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+MODM+AND+fixVersion+%3D+%221.0.0BETA1%22&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+MODM+AND+fixVersion+%3D+%221.0.0BETA1%22</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="18" total="18"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[MODM-93] YAML and XML mapping drivers ignore discriminatorField and discriminatorMap</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-93</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;The discriminatorField and discriminatorMap options are ignored by both the YAML and XML drivers.&lt;/p&gt;

&lt;p&gt;Example:&lt;br/&gt;
This mapping fails to store the discriminator in the type field and instead uses _doctrine_class_name as the discriminatorField the mapping also reverts to using class names.&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-xml&quot;&gt; 
&lt;span class=&quot;code-tag&quot;&gt;&amp;lt;?xml version=&lt;span class=&quot;code-quote&quot;&gt;&quot;1.0&quot;&lt;/span&gt; encoding=&lt;span class=&quot;code-quote&quot;&gt;&quot;UTF-8&quot;&lt;/span&gt;?&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-tag&quot;&gt;&amp;lt;doctrine-mongo-mapping&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;document name=&lt;span class=&quot;code-quote&quot;&gt;&quot;Application\Test\Document\Group&quot;&lt;/span&gt; collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;groups&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;field name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt; fieldName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt; id=&lt;span class=&quot;code-quote&quot;&gt;&quot;true&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;field name=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt; fieldName=&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt; type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;embed-many field=&lt;span class=&quot;code-quote&quot;&gt;&quot;people&quot;&lt;/span&gt; discriminator-field=&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;
            &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;discriminator-map&amp;gt;&lt;/span&gt;
                &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;discriminator-mapping class=&lt;span class=&quot;code-quote&quot;&gt;&quot;Admin&quot;&lt;/span&gt; value=&lt;span class=&quot;code-quote&quot;&gt;&quot;Admin&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;
                &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;discriminator-mapping class=&lt;span class=&quot;code-quote&quot;&gt;&quot;User&quot;&lt;/span&gt; value=&lt;span class=&quot;code-quote&quot;&gt;&quot;User&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;
            &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;/discriminator-map&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;/embed-many&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;/document&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-tag&quot;&gt;&amp;lt;/doctrine-mongo-mapping&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think that this is also a problem for referenced documents as well, as the code for the two is nearly identical.&lt;/p&gt;

&lt;p&gt;I refactored addEmbedMapping and addReferenceMapping to call the same function addDocumentMapping&lt;br/&gt;
Commit can be found here &lt;a href=&quot;http://github.com/dordille/mongodb-odm/commit/41ce2ee126ff7f82610130704dbec451384bfdd3&quot; class=&quot;external-link&quot;&gt;http://github.com/dordille/mongodb-odm/commit/41ce2ee126ff7f82610130704dbec451384bfdd3&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Symony2&lt;br/&gt;
Doctrine2 latest from github</environment>
            <key id="12030">MODM-93</key>
            <summary>YAML and XML mapping drivers ignore discriminatorField and discriminatorMap</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="dordille">Dan Ordille</reporter>
                        <labels>
                    </labels>
                <created>Sun, 24 Oct 2010 02:53:38 +0000</created>
                <updated>Wed, 24 Nov 2010 13:13:32 +0000</updated>
                    <resolved>Wed, 24 Nov 2010 13:13:32 +0000</resolved>
                            <version>1.0.0ALPHA1</version>
                <version>1.0.0ALPHA2</version>
                <version>1.0.0BETA1</version>
                <version>1.0.0BETA2</version>
                                <fixVersion>1.0.0ALPHA1</fixVersion>
                <fixVersion>1.0.0ALPHA2</fixVersion>
                <fixVersion>1.0.0BETA1</fixVersion>
                <fixVersion>1.0.0BETA2</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14811" author="jwage" created="Wed, 24 Nov 2010 13:13:32 +0000"  >&lt;p&gt;Merged! Thanks for the fix!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-50] GridFs file classes don&apos;t support inheritance</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-50</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;GridFs files do not support inheritance anymore. This issue only appeared after latest updates from git. It was working before.&lt;/p&gt;

&lt;p&gt;Here is a test case:&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(collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;files&quot;&lt;/span&gt;, db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;)
 * @InheritanceType(&lt;span class=&quot;code-quote&quot;&gt;&quot;SINGLE_COLLECTION&quot;&lt;/span&gt;)
 * @DiscriminatorField(fieldName=&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;)
 * @DiscriminatorMap({
 *      &lt;span class=&quot;code-quote&quot;&gt;&quot;file&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;file&quot;&lt;/span&gt;,
 *      &lt;span class=&quot;code-quote&quot;&gt;&quot;image&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;image&quot;&lt;/span&gt;
 * })
 */
class file
{
    /** @Id */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /** @File */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $file;

    function __construct($file) {$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;file = $file;}
}

/** @Document(collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;files&quot;&lt;/span&gt;, db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;) */
class image &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; file
{
    /** @File */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $file;
}

$a = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; image(__DIR__ . &apos;/test.txt&apos;);
$dm-&amp;gt;persist($a);
$dm-&amp;gt;flush();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This code creates document in regular collection &quot;files&quot; instead of GridFs collection.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11786">MODM-50</key>
            <summary>GridFs file classes don&apos;t support inheritance</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="vladar">Vladimir Razuvaev</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 Aug 2010 08:39:29 +0000</created>
                <updated>Tue, 17 Aug 2010 23:57:45 +0000</updated>
                    <resolved>Tue, 17 Aug 2010 20:33:17 +0000</resolved>
                                            <fixVersion>1.0.0BETA1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13991" author="jwage" created="Tue, 17 Aug 2010 20:33:17 +0000"  >&lt;p&gt;Thanks for the issue! Fixed by &lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/3830635986a288235c46e198b7170d959ce37647&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/3830635986a288235c46e198b7170d959ce37647&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="13992" author="vladar" created="Tue, 17 Aug 2010 23:57:45 +0000"  >&lt;p&gt;Thanks for quick fixes! &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;

&lt;p&gt;I also found other weird issue, will create separate case for it.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-49] Getting PHP notice and warning with empty persistent collection</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-49</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;If there is an object with empty collection, e.g.:&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;{
  &lt;span class=&quot;code-quote&quot;&gt;&quot;_id&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;4c6a11810f9d503c03000000&quot;&lt;/span&gt;,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;b&quot;&lt;/span&gt;: [
  ]
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then following code produces notice and warning:&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(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;, collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;) */
class a
{
    /** @Id */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /** @ReferenceMany(targetDocument=&lt;span class=&quot;code-quote&quot;&gt;&quot;b&quot;&lt;/span&gt;, cascade=&lt;span class=&quot;code-quote&quot;&gt;&quot;persist&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $b;

    function getB()   {&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;b;}
}

/** @Document(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;, collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests2&quot;&lt;/span&gt;) */
class b
{
    /** @Id */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;
}

$a = $dm-&amp;gt;loadByID(&apos;a&apos;, &apos;4c6a11810f9d503c03000000&apos;);
echo count($a-&amp;gt;getB()); &lt;span class=&quot;code-comment&quot;&gt;// produces notice and warning&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Notice and warning text:&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;Notice: Undefined variable: groupedIds in library\Doctrine\ODM\MongoDB\PersistentCollection.php on line 122

Warning: Invalid argument supplied &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; foreach() in library\Doctrine\ODM\MongoDB\PersistentCollection.php on line 122
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="11782">MODM-49</key>
            <summary>Getting PHP notice and warning with empty persistent collection</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="vladar">Vladimir Razuvaev</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 Aug 2010 00:45:22 +0000</created>
                <updated>Tue, 17 Aug 2010 17:16:52 +0000</updated>
                    <resolved>Tue, 17 Aug 2010 17:16:52 +0000</resolved>
                                            <fixVersion>1.0.0BETA1</fixVersion>
                                <component>Collections</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13988" author="jwage" created="Tue, 17 Aug 2010 17:16:52 +0000"  >&lt;p&gt;This is fixed now.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-48] Embedded document changes are ignored if it was empty before</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-48</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Imaging the object in DB:&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;{
  &lt;span class=&quot;code-quote&quot;&gt;&quot;_id&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;4c693f9f0f9d501c0d000000&quot;&lt;/span&gt;,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;b&quot;&lt;/span&gt;: [
  ]
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then following code fails to update property &quot;b&quot;:&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(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;, collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;) */
class a
{
    /** @Id */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /** @EmbedOne(targetDocument=&lt;span class=&quot;code-quote&quot;&gt;&quot;b&quot;&lt;/span&gt;, cascade=&lt;span class=&quot;code-quote&quot;&gt;&quot;all&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $b;

    function getId()  {&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;id;}
    function getB()   {&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;b;}
    function setB($b) {$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;b = $b;}
}

/** @EmbeddedDocument */
class b
{
    /** @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $val;
    function setVal($val) {$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;val = $val;}
    function getVal() {&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;val;}
}

$a = $dm-&amp;gt;loadByID(&apos;a&apos;, &apos;4c693f9f0f9d501c0d000000&apos;);
$a-&amp;gt;getB()-&amp;gt;setVal(&apos;test&apos;);

$dm-&amp;gt;persist($a);
$dm-&amp;gt;flush();
$dm-&amp;gt;getUnitOfWork()-&amp;gt;clear();

$a = $dm-&amp;gt;loadByID(&apos;a&apos;, $a-&amp;gt;getId());
$c = (&apos;test&apos; === $a-&amp;gt;getB()-&amp;gt;getVal());

var_dump($c); &lt;span class=&quot;code-comment&quot;&gt;// expecting &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;&quot;&lt;/span&gt;, but outputs &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="11778">MODM-48</key>
            <summary>Embedded document changes are ignored if it was empty 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="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="vladar">Vladimir Razuvaev</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Aug 2010 09:48:33 +0000</created>
                <updated>Tue, 17 Aug 2010 20:13:13 +0000</updated>
                    <resolved>Tue, 17 Aug 2010 20:13:13 +0000</resolved>
                                            <fixVersion>1.0.0BETA1</fixVersion>
                                <component>Persister</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13965" author="jwage" created="Mon, 16 Aug 2010 13:41:00 +0000"  >&lt;p&gt;Are you using the most recent version of mongo in git?&lt;/p&gt;</comment>
                    <comment id="13970" author="vladar" created="Mon, 16 Aug 2010 23:31:35 +0000"  >&lt;p&gt;Yes, just updated to today&apos;s version from git - got same results.&lt;/p&gt;</comment>
                    <comment id="13990" author="jwage" created="Tue, 17 Aug 2010 20:13:13 +0000"  >&lt;p&gt;Thanks for the issue!&lt;/p&gt;

&lt;p&gt;Fixed by &lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/c57cc9fbf279918edcafd03ab4562ed33b467323&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/c57cc9fbf279918edcafd03ab4562ed33b467323&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-47] @AlsoLoad annotation, used on method causes fatal error</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-47</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Getting following errors when using @AlsoLoad annotation on method:&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;Notice: Undefined index: isCascadePersist in library\Doctrine\ODM\MongoDB\UnitOfWork.php on line 1661

Notice: Undefined index: fieldName in library\Doctrine\ODM\MongoDB\UnitOfWork.php on line 362

Notice: Undefined index: in library\Doctrine\ODM\MongoDB\Mapping\ClassMetadata.php on line 923

Fatal error: Call to a member function getValue() on a non-object in library\Doctrine\ODM\MongoDB\Mapping\ClassMetadata.php on line 923
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Test Case:&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(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;, collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;) */
class a
{
    /** @Id */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /** @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $b = &apos;tmp&apos;;

    /** @AlsoLoad(&lt;span class=&quot;code-quote&quot;&gt;&quot;c&quot;&lt;/span&gt;) */
    function renameC($c) {$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;b = $c;}
    function getId() {&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;id;}
}

$a = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; a();
$dm-&amp;gt;persist($a);
$dm-&amp;gt;flush();
$dm-&amp;gt;getUnitOfWork()-&amp;gt;clear();

$a = $dm-&amp;gt;loadByID(&apos;a&apos;, $a-&amp;gt;getId());
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="11777">MODM-47</key>
            <summary>@AlsoLoad annotation, used on method causes fatal error</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="vladar">Vladimir Razuvaev</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Aug 2010 09:24:12 +0000</created>
                <updated>Tue, 17 Aug 2010 17:15:27 +0000</updated>
                    <resolved>Tue, 17 Aug 2010 17:15:27 +0000</resolved>
                                            <fixVersion>1.0.0BETA1</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13987" author="jwage" created="Tue, 17 Aug 2010 17:15:27 +0000"  >&lt;p&gt;Thanks for all the issues &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;

&lt;p&gt;Fixed here &lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/6e7610ac99dcc4cab92cd01bd66e0a2c9ffda1ce&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/6e7610ac99dcc4cab92cd01bd66e0a2c9ffda1ce&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-46] @AlsoLoad annotation causes exception when used together with Embed/Reference annotations</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-46</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Imagine that there is following object in DB:&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;{
  &lt;span class=&quot;code-quote&quot;&gt;&quot;_id&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;4c6936bf0f9d50300d000000&quot;&lt;/span&gt;,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;c&quot;&lt;/span&gt;: {
    &lt;span class=&quot;code-quote&quot;&gt;&quot;tmp&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;tmp&quot;&lt;/span&gt;
  }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And I want to rename property &quot;c&quot; to &quot;b&quot; in my class, using @AlsoLoad together with @EmbedOne&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(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;, collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;) */
class a
{
    /** @Id */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /**
     * @EmbedOne(targetDocument=&lt;span class=&quot;code-quote&quot;&gt;&quot;b&quot;&lt;/span&gt;)
     * @AlsoLoad(&lt;span class=&quot;code-quote&quot;&gt;&quot;c&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $b;
}

/** @EmbeddedDocument */
class b
{
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $tmp = &apos;tmp&apos;;
}

$a = $dm-&amp;gt;loadByID(&apos;a&apos;, &apos;4c6936bf0f9d50300d000000&apos;); &lt;span class=&quot;code-comment&quot;&gt;// will &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; an exception: Property &lt;span class=&quot;code-quote&quot;&gt;&quot;b&quot;&lt;/span&gt; in &lt;span class=&quot;code-quote&quot;&gt;&quot;a&quot;&lt;/span&gt; was already declared, but it must be declared only once&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
</description>
                <environment></environment>
            <key id="11776">MODM-46</key>
            <summary>@AlsoLoad annotation causes exception when used together with Embed/Reference annotations</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="vladar">Vladimir Razuvaev</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Aug 2010 09:11:13 +0000</created>
                <updated>Tue, 17 Aug 2010 16:57:27 +0000</updated>
                    <resolved>Tue, 17 Aug 2010 16:57:27 +0000</resolved>
                                            <fixVersion>1.0.0BETA1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13986" author="jwage" created="Tue, 17 Aug 2010 16:57:27 +0000"  >&lt;p&gt;Fixed by &lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/166ca49c13c8e3132b85383e4c55f0a09ce0d2b1&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/166ca49c13c8e3132b85383e4c55f0a09ce0d2b1&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-45] Doctrine doesn&apos;t persist empty objects</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-45</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Doctrine won&apos;t persist object if it is empty (all fields are nulls). Not sure if it is bug or expected behavior, but sometimes it causes inconvenience. Test case:&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(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;, collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;) */
class a
{
    /** @Id */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /** @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $b;
}

$a = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; a();
$dm-&amp;gt;persist($a);
$dm-&amp;gt;flush(); &lt;span class=&quot;code-comment&quot;&gt;// $a won&apos;t be inserted&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;There is also related issue: when embedding empty object (all fields are nulls) embedded object is not saved.&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(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;, collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;) */
class a
{
    /** @Id */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /** @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $tmp = &apos;WorkaroundToBeSaved&apos;;

    /** @EmbedOne(targetDocument=&lt;span class=&quot;code-quote&quot;&gt;&quot;b&quot;&lt;/span&gt;, cascade=&lt;span class=&quot;code-quote&quot;&gt;&quot;all&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $b;

    function getId()  {&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;id;}
    function getB()   {&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;b;}
    function setB($b) {$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;b = $b;}
}

/** @EmbeddedDocument */
class b
{
    /** @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $val;
    function setVal($val) {$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;val = $val;}
    function getVal() {&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;val;}
}

$a = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; a();
$a-&amp;gt;setB(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; b());

$dm-&amp;gt;persist($a);
$dm-&amp;gt;flush();
$dm-&amp;gt;getUnitOfWork()-&amp;gt;clear();

$a = $dm-&amp;gt;loadByID(&apos;a&apos;, $a-&amp;gt;getId());
$c = (&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; !== $a-&amp;gt;getB()); 
var_dump($c); &lt;span class=&quot;code-comment&quot;&gt;// returns &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; expecting &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="11775">MODM-45</key>
            <summary>Doctrine doesn&apos;t persist empty objects</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="vladar">Vladimir Razuvaev</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Aug 2010 08:40:28 +0000</created>
                <updated>Tue, 17 Aug 2010 15:49:32 +0000</updated>
                    <resolved>Tue, 17 Aug 2010 15:49:32 +0000</resolved>
                                            <fixVersion>1.0.0BETA1</fixVersion>
                                <component>Persister</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13966" author="jwage" created="Mon, 16 Aug 2010 13:41:37 +0000"  >&lt;p&gt;Mongo won&apos;t let you insert empty documents, so we can&apos;t allow it.&lt;/p&gt;</comment>
                    <comment id="13967" author="jwage" created="Mon, 16 Aug 2010 13:43:09 +0000"  >&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;$mongo = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Mongo();
$doc = array();
$mongo-&amp;gt;dbname-&amp;gt;coll-&amp;gt;insert($doc);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Causes this error:&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;PHP Fatal error:  Uncaught exception &apos;MongoException&apos; with message &apos;no elements in doc&apos; in /Users/jwage/Sites/mongodb-odm/test.php:5
Stack trace:
#0 /Users/jwage/Sites/mongodb-odm/test.php(5): MongoCollection-&amp;gt;insert(Array)
#1 {main}
  thrown in /Users/jwage/Sites/mongodb-odm/test.php on line 5

MongoException: no elements in doc in /Users/jwage/Sites/mongodb-odm/test.php on line 5

Call Stack:
    0.0004     320216   1. {main}() /Users/jwage/Sites/mongodb-odm/test.php:0
    0.0037     322036   2. MongoCollection-&amp;gt;insert() /Users/jwage/Sites/mongodb-odm/test.php:5
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="13969" author="vladar" created="Mon, 16 Aug 2010 23:24:46 +0000"  >&lt;p&gt;I see now. But second case is still possible with mongo and not supported by ODM:&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;$a = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; a();
$a-&amp;gt;setB(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; b());
$dm-&amp;gt;persist($a);
$dm-&amp;gt;flush($a);

/* expecting:
{
  &lt;span class=&quot;code-quote&quot;&gt;&quot;_id&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;4c69ff3c0f9d50c80e000000&quot;&lt;/span&gt;,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;tmp&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;WorkaroundToBeSaved&quot;&lt;/span&gt;,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;b&quot;&lt;/span&gt; =&amp;gt; []
}

* getting:
{
  &lt;span class=&quot;code-quote&quot;&gt;&quot;_id&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;4c69ff3c0f9d50c80e000000&quot;&lt;/span&gt;,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;tmp&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;WorkaroundToBeSaved&quot;&lt;/span&gt;
}
*/

Also, &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; I remove string &lt;span class=&quot;code-quote&quot;&gt;&quot;WorkaroundToBeSaved&quot;&lt;/span&gt; from $a, it won&apos;t be saved with flush, although it is not empty (has $b field set).
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="13971" author="jwage" created="Tue, 17 Aug 2010 02:35:33 +0000"  >&lt;p&gt;This is expected as well since we never store null values or empty arrays.&lt;/p&gt;</comment>
                    <comment id="13980" author="jwage" created="Tue, 17 Aug 2010 15:48:40 +0000"  >&lt;p&gt;After a second look we can fix this.&lt;/p&gt;</comment>
                    <comment id="13982" author="jwage" created="Tue, 17 Aug 2010 15:49:32 +0000"  >&lt;p&gt;Fixed by &lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/b3a16496c0576e8f926faec9bbcfd5716006273b&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/b3a16496c0576e8f926faec9bbcfd5716006273b&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-43] Explicit schema migration</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-43</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Currently supported ways of schema migration are sufficient in many cases. But I think it&apos;s worth considering to have more explicit way to migrate schema for better readability / code maintenance.&lt;/p&gt;

&lt;p&gt;It might be useful to be able to transform original MongoDb data prior to hydration. Maybe as a new lifecycle callback (e.g. preLoad). This way one could have special property for schema version in the document and normalize data according to version differencies. e.g.:&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;function preLoad(array &amp;amp;$data)
{
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(!isset($data[&apos;version&apos;])) {
        $data[&apos;version&apos;] = 1;
    }
    &lt;span class=&quot;code-keyword&quot;&gt;switch&lt;/span&gt;($data[&apos;version&apos;]) {
        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; 1:
             $data[&apos;fullName&apos;] = $data[&apos;name&apos;];
             unset($data[&apos;name&apos;]);
             &lt;span class=&quot;code-comment&quot;&gt;// breaks are ommitted intentionally here and below
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; 2:
             $e = explode(&apos; &apos;, $data[&apos;fullName&apos;])
             $data[&apos;firstname&apos;] = $e[0];
             $data[&apos;lastname&apos;] = $e[1];
             unset($data[&apos;fullName&apos;]);
        &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; 3:
             $data[&apos;address&apos;] = array(
                 &apos;street&apos; =&amp;gt; $data[&apos;street&apos;],
                 &apos;city&apos; =&amp;gt; $data[&apos;city&apos;]
             );
             unset($data[&apos;street&apos;]);
             unset($data[&apos;city&apos;]);
         &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; 4:
         &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;:
              &lt;span class=&quot;code-comment&quot;&gt;// current version
&lt;/span&gt;    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Just as example. It also simplifies writing tests for schema migrations as I think. Is it possible with current ODM internals? What do you think? &lt;br/&gt;
I could try to implement this feature if it is acceptable proposal.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11748">MODM-43</key>
            <summary>Explicit schema migration</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="vladar">Vladimir Razuvaev</reporter>
                        <labels>
                    </labels>
                <created>Tue, 10 Aug 2010 09:55:45 +0000</created>
                <updated>Tue, 17 Aug 2010 16:46:39 +0000</updated>
                    <resolved>Tue, 17 Aug 2010 16:46:29 +0000</resolved>
                                            <fixVersion>1.0.0BETA1</fixVersion>
                                <component>Hydration</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13893" author="jwage" created="Tue, 10 Aug 2010 13:53:44 +0000"  >&lt;p&gt;I think this can be implemented already without having to change Doctrine. You just need to manage a version field and use the preLoad() like you are above. It is an acceptable idea, but I think it is already possible. What do you think?&lt;/p&gt;</comment>
                    <comment id="13901" author="vladar" created="Wed, 11 Aug 2010 01:22:22 +0000"  >&lt;p&gt;It&apos;s great if it is already possible. But I think there is no &quot;preLoad&quot;, &quot;preHydrate&quot; or similar event right now. At least I didn&apos;t find one in code or docs.&lt;/p&gt;</comment>
                    <comment id="13917" author="jwage" created="Wed, 11 Aug 2010 13:15:30 +0000"  >&lt;p&gt;Ok, I think maybe we can add a preLoad() event.&lt;/p&gt;</comment>
                    <comment id="13984" author="jwage" created="Tue, 17 Aug 2010 16:46:29 +0000"  >&lt;p&gt;Fixed by &lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/78fefc3b70aa8ec0facd3cc4ffa27d6c88670407&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/78fefc3b70aa8ec0facd3cc4ffa27d6c88670407&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-42] PersistentCollection fails when working with MongoGridFs</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-42</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Getting following error when trying to use MongoGridFs files with referenceMany:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Argument 2 passed to Doctrine\ODM\MongoDB\UnitOfWork::getOrCreateDocument() must be an array, object given, called in 
D:\Work\www\syter2.localhost.dev\library\Doctrine\ODM\MongoDB\PersistentCollection.php on line 110 and defined
D:\Work\www\syter2.localhost.dev\library\Doctrine\ODM\MongoDB\UnitOfWork.php:1719
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As far as I understand queries against MongoGridFS collection return instances of MongoGridFSFile, while PersistentCollection only expects arrays (as with regular collections)&lt;/p&gt;

&lt;p&gt;I think Issue appeared after latest updates from git. Because I didn&apos;t experience it with ALPHA1 (didn&apos;t test with ALPHA2)&lt;/p&gt;</description>
                <environment></environment>
            <key id="11746">MODM-42</key>
            <summary>PersistentCollection fails when working with MongoGridFs</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="vladar">Vladimir Razuvaev</reporter>
                        <labels>
                    </labels>
                <created>Tue, 10 Aug 2010 00:58:29 +0000</created>
                <updated>Tue, 17 Aug 2010 15:52:52 +0000</updated>
                    <resolved>Tue, 17 Aug 2010 15:52:52 +0000</resolved>
                                            <fixVersion>1.0.0BETA1</fixVersion>
                                <component>Collections</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13889" author="jwage" created="Tue, 10 Aug 2010 04:53:17 +0000"  >&lt;p&gt;I&apos;ll check it out, if you can provide a test that&apos;d be helpful.&lt;/p&gt;</comment>
                    <comment id="13892" author="vladar" created="Tue, 10 Aug 2010 09:09:13 +0000"  >&lt;p&gt;Here is a test case:&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(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;, collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;) */
class a
{
    /** @Id */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /** @ReferenceMany(targetDocument=&lt;span class=&quot;code-quote&quot;&gt;&quot;file&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $files = array();

    function __construct($files) {$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;files = $files;}

    function getFiles() {&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;files;}
}

/** @Document(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;, collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;files&quot;&lt;/span&gt;) */
class file
{
    /** @Id */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /** @File */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $file;

    function __construct($path) {$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;file = $path;}

    function getMongoFile() {&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;file;}
}

$f = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; file(__DIR__ . &apos;/test.txt&apos;);
$a = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; a(array($f));

$dm-&amp;gt;persist($f);
$dm-&amp;gt;persist($a);
$dm-&amp;gt;flush();

$dm-&amp;gt;getUnitOfWork()-&amp;gt;clear();

$a = $dm-&amp;gt;findOne(&apos;a&apos;, array());
foreach($a-&amp;gt;getFiles() as $file) {
    $file-&amp;gt;getMongoFile(); &lt;span class=&quot;code-comment&quot;&gt;// produces catchable fatal error
&lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="13895" author="jwage" created="Tue, 10 Aug 2010 15:22:13 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/964ce247841d11af8ab28cfbde36f6cc09b0d366&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/964ce247841d11af8ab28cfbde36f6cc09b0d366&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-41] Hydration down not work for annotation &quot;@ReferenceMany&quot;</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-41</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;When you try to find or execute query, filds with annotation reference many (arrays) do not load.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;user.php&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;&amp;lt;?php

/**
 * @Document(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;DB&quot;&lt;/span&gt;, collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;Users&quot;&lt;/span&gt;)
 */
class User
{
    /**
     * @Id
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $id;
    /**
     * @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt;
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $name;
    /**
     * @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt;
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $password;
    /**
     * @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt;
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $email;
        /**
     * @ReferenceMany(targetDocument=&lt;span class=&quot;code-quote&quot;&gt;&quot;Group&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $groups = array();
}
?&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;group.php&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;&amp;lt;?php

/**
 * @Document(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;MCI&quot;&lt;/span&gt;, collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;Groups&quot;&lt;/span&gt;)
 */
class Group
{
    /**
     * @Id
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $id;
    /**
     * @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt;
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $name;
    /**
     * @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt;
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $role_name;

}
?&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When you execute this line:&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; $obj = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;dm-&amp;gt;findOne(&lt;span class=&quot;code-quote&quot;&gt;&quot;User&quot;&lt;/span&gt;,(&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;Flavio&quot;&lt;/span&gt;));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;All the fields are returned correctly, but &quot;groups&quot; apear empty.&lt;/p&gt;

&lt;p&gt;When you use @EmbedMany annotation works file.&lt;/p&gt;

&lt;p&gt;Regards.&lt;/p&gt;

&lt;p&gt;PS: I&apos;m using codeigniter framework&lt;/p&gt;</description>
                <environment>Windows(webserver) / Unix (Mongo)</environment>
            <key id="11734">MODM-41</key>
            <summary>Hydration down not work for annotation &quot;@ReferenceMany&quot;</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="flaviolacer">Flavio Lacerda</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Aug 2010 16:48:56 +0000</created>
                <updated>Mon, 9 Aug 2010 10:03:09 +0000</updated>
                    <resolved>Fri, 6 Aug 2010 23:39:57 +0000</resolved>
                            <version>1.0.0ALPHA2</version>
                                <fixVersion>1.0.0BETA1</fixVersion>
                                <component>Hydration</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13797" author="jwage" created="Fri, 6 Aug 2010 17:03:28 +0000"  >&lt;p&gt;This works for me. Can you provide a more exact test case that does not work?&lt;/p&gt;</comment>
                    <comment id="13803" author="flaviolacer" created="Fri, 6 Aug 2010 22:23:13 +0000"  >&lt;p&gt;I created an script.&lt;br/&gt;
Took a picture of output script too.&lt;/p&gt;</comment>
                    <comment id="13805" author="jwage" created="Fri, 6 Aug 2010 23:39:57 +0000"  >&lt;p&gt;&lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/cbe22dfd50225250ab468ea2f5e243736b2f35fd&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/cbe22dfd50225250ab468ea2f5e243736b2f35fd&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="13876" author="flaviolacer" created="Mon, 9 Aug 2010 10:03:09 +0000"  >&lt;p&gt;Now works perfect. I&#180;m using it a lot. Amazing lib and amazing support.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10726" name="screenshot-script.jpg" size="214270" author="flaviolacer" created="Fri, 6 Aug 2010 22:25:43 +0000" />
                    <attachment id="10724" name="test.zip" size="406077" author="flaviolacer" created="Fri, 6 Aug 2010 22:23:54 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-40] Move value scalarization and comparison to Unit Of Work</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-40</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;The BasicDocumentPersister::_equals belongs in the UnitOfWork.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11733">MODM-40</key>
            <summary>Move value scalarization and comparison to Unit Of Work</summary>
                <type id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/task.png">Task</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="avalanche123">Bulat Shakirzyanov</assignee>
                                <reporter username="avalanche123">Bulat Shakirzyanov</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Aug 2010 14:59:24 +0000</created>
                <updated>Fri, 6 Aug 2010 22:11:17 +0000</updated>
                    <resolved>Fri, 6 Aug 2010 22:11:17 +0000</resolved>
                            <version>1.0.0ALPHA1</version>
                <version>1.0.0ALPHA2</version>
                                <fixVersion>1.0.0BETA1</fixVersion>
                                <component>Persister</component>
                <component>UnitOfWork</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13801" author="jwage" created="Fri, 6 Aug 2010 22:11:17 +0000"  >&lt;p&gt;I refactored and that code is not needed and gone now.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-38] Using YAML description with embedMany causes PHP notice error</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-38</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;When using the YAML style description together with the new embedMany functionality of mixed documents, you get a PHP notice error every time you create a new model.&lt;/p&gt;

&lt;p&gt;Because when you have mixed documents, you don&apos;t specify a targetDocument, and therefore the YAML Driver can not find an element in the array that describes the targetDocument.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11721">MODM-38</key>
            <summary>Using YAML description with embedMany causes PHP notice error</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="sebastian.hoitz">Sebastian Hoitz</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Aug 2010 13:51:50 +0000</created>
                <updated>Fri, 6 Aug 2010 17:06:13 +0000</updated>
                    <resolved>Fri, 6 Aug 2010 17:06:13 +0000</resolved>
                            <version>1.0.0ALPHA2</version>
                                <fixVersion>1.0.0BETA1</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13798" author="jwage" created="Fri, 6 Aug 2010 17:06:13 +0000"  >&lt;p&gt;&lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/8c8437a9113a0849f38db0664f66dd407a497918&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/8c8437a9113a0849f38db0664f66dd407a497918&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-37] Problems with EmbedMany and discrimatorMap and discriminatorField</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-37</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;I&apos;m experiencing a problem when trying to embed documents and specify my own discriminatorMap and Field.&lt;/p&gt;

&lt;p&gt;This is the code I have:&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(collection = &lt;span class=&quot;code-quote&quot;&gt;&quot;ticket&quot;&lt;/span&gt;) */
    class App_Model_Ticket &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; App_Model_Abstract
    {
    	/**
    	 * @EmbedMany(
    	 *	discriminatorField = &lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;,
    	 *	discriminatorMap={
    	 *		&lt;span class=&quot;code-quote&quot;&gt;&quot;twitter&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;App_Model_Ticket_Twitter&quot;&lt;/span&gt;,
	 *		&lt;span class=&quot;code-quote&quot;&gt;&quot;email&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;App_Model_Ticket_Email&quot;&lt;/span&gt;
	 *	})
	 */
    	&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $messages = array();
    
    	&lt;span class=&quot;code-comment&quot;&gt;// [...]
&lt;/span&gt;    }

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;App_Model_Abstract is a MappedSuperClass.&lt;/p&gt;

&lt;p&gt;App_Model_Ticket_Email and App_Model_Ticket_Twitter pretty much look alike right now:&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;    /** @EmbeddedDocument */
    class App_Model_Ticket_Email &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; App_Model_Ticket_Message
    {
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and App_Model_Ticket_Message is another MappedSuperClass that extends App_Model_Abstract.&lt;/p&gt;

&lt;p&gt;Now, whenever I create a new model and persist it to mongoDB, the entry gets created and looks 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;    [_id] =&amp;gt; MongoId &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt; (
    )
    [messages] =&amp;gt; Array (
        [0] =&amp;gt; Array (
            [message] =&amp;gt; Lorem ipsum
            [subject] =&amp;gt; Ich bin ein Berliner22
            [dateSent] =&amp;gt; MongoDate &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt; (
                [sec] =&amp;gt; 1280909855
                [usec] =&amp;gt; 0
            )
            [_doctrine_class_name] =&amp;gt; App_Model_Ticket_Twitter
        )
        [1] =&amp;gt; Array (
            [message] =&amp;gt; Lorem ipsum
            [subject] =&amp;gt; Ich bin ein Berliner22
            [dateSent] =&amp;gt; MongoDate &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt; (
                [sec] =&amp;gt; 1280909855
                [usec] =&amp;gt; 0
            )
            [_doctrine_class_name] =&amp;gt; App_Model_Ticket_Email
        )
    )
    [subject] =&amp;gt; Ich bin ein Berliner22
    [dateCreated] =&amp;gt; MongoDate &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt; (
        [sec] =&amp;gt; 1280909855
        [usec] =&amp;gt; 0
    )
    [dateLastMessage] =&amp;gt; MongoDate &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt; (
        [sec] =&amp;gt; 1280909855
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However, as you can see no type field for my embedded documents, it still uses _doctrine_class_name.&lt;/p&gt;

&lt;p&gt;But when I try to fetch this object, I get an exception saying &quot;Class not found&quot;.&lt;/p&gt;

&lt;p&gt;I think this is because right now Doctrine ODM does not write into the custom discriminatorField with embedded documents, but reads from it.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11720">MODM-37</key>
            <summary>Problems with EmbedMany and discrimatorMap and discriminatorField</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="sebastian.hoitz">Sebastian Hoitz</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Aug 2010 13:51:19 +0000</created>
                <updated>Fri, 6 Aug 2010 17:09:14 +0000</updated>
                    <resolved>Fri, 6 Aug 2010 17:09:14 +0000</resolved>
                            <version>1.0.0ALPHA1</version>
                                <fixVersion>1.0.0BETA1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13799" author="jwage" created="Fri, 6 Aug 2010 17:09:14 +0000"  >&lt;p&gt;&lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/618896bb8d879a8365dc359a8949c9d2cad5bec7&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/618896bb8d879a8365dc359a8949c9d2cad5bec7&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-36] Embedded relations are not persisted after a flush()</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-36</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Newly added embedded relations do not get persisted when a flush() is executed before they are added to the parent document. Here is a failing test, note the comment &quot;// Adding this flush here makes level1 not to be inserted.&quot;:&lt;/p&gt;

&lt;p&gt;public function testFlushEmbedded()&lt;/p&gt;
  {
    $test = new EmbeddedTestLevel0();
    $test-&amp;gt;name = &apos;test&apos;;

    $this-&amp;gt;dm-&amp;gt;persist($test);
    $this-&amp;gt;dm-&amp;gt;flush();
    $this-&amp;gt;dm-&amp;gt;clear();

    $test = $this-&amp;gt;dm-&amp;gt;findOne(&apos;Documents\Functional\EmbeddedTestLevel0&apos;);
    $this-&amp;gt;assertInstanceOf(&apos;Documents\Functional\EmbeddedTestLevel0&apos;, $test);

    // Adding this flush here makes level1 not to be inserted.
    $this-&amp;gt;dm-&amp;gt;flush();
   
    $level1 = new EmbeddedTestLevel1();
    $level1-&amp;gt;name = &apos;test level1 #1&apos;;
    $test-&amp;gt;level1[] = $level1;

    $this-&amp;gt;dm-&amp;gt;persist($test);
    $this-&amp;gt;dm-&amp;gt;flush();
    $this-&amp;gt;dm-&amp;gt;clear();

    $test = $this-&amp;gt;dm-&amp;gt;findOne(&apos;Documents\Functional\EmbeddedTestLevel0&apos;);
    $this-&amp;gt;assertInstanceOf(&apos;Documents\Functional\EmbeddedTestLevel0&apos;, $test);
    $this-&amp;gt;assertInstanceOf(&apos;Documents\Functional\EmbeddedTestLevel1&apos;, $test-&amp;gt;level1[0]);

  } </description>
                <environment></environment>
            <key id="11711">MODM-36</key>
            <summary>Embedded relations are not persisted after a flush()</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="pgodel">Pablo Godel</reporter>
                        <labels>
                    </labels>
                <created>Tue, 3 Aug 2010 21:44:55 +0000</created>
                <updated>Fri, 6 Aug 2010 17:01:41 +0000</updated>
                    <resolved>Fri, 6 Aug 2010 17:01:41 +0000</resolved>
                                            <fixVersion>1.0.0BETA1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13791" author="vladar" created="Fri, 6 Aug 2010 02:56:54 +0000"  >&lt;p&gt;I also experience this issue. Formatted text from original message for convenience:&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;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function testFlushEmbedded() 
{
	$test = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; EmbeddedTestLevel0(); 
	$test-&amp;gt;name = &apos;test&apos;; 
	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;dm-&amp;gt;persist($test); 
	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;dm-&amp;gt;flush(); 
	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;dm-&amp;gt;clear(); 
	$test = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;dm-&amp;gt;findOne(&apos;Documents\Functional\EmbeddedTestLevel0&apos;);
	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertInstanceOf(&apos;Documents\Functional\EmbeddedTestLevel0&apos;, $test); 
	&lt;span class=&quot;code-comment&quot;&gt;// Adding &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; flush here makes level1 not to be inserted. 
&lt;/span&gt;	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;dm-&amp;gt;flush(); 

	$level1 = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; EmbeddedTestLevel1(); 
	$level1-&amp;gt;name = &apos;test level1 #1&apos;; 
	$test-&amp;gt;level1[] = $level1; 
	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;dm-&amp;gt;persist($test); 
	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;dm-&amp;gt;flush(); 
	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;dm-&amp;gt;clear(); 
	$test = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;dm-&amp;gt;findOne(&apos;Documents\Functional\EmbeddedTestLevel0&apos;); 
	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertInstanceOf(&apos;Documents\Functional\EmbeddedTestLevel0&apos;, $test); 
	$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertInstanceOf(&apos;Documents\Functional\EmbeddedTestLevel1&apos;, $test-&amp;gt;level1[0]); 
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="13793" author="jwage" created="Fri, 6 Aug 2010 07:57:12 +0000"  >&lt;p&gt;Do you all have the cascade operating enabled in your mapping?&lt;/p&gt;</comment>
                    <comment id="13796" author="jwage" created="Fri, 6 Aug 2010 17:01:41 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/20033a35a9cbf345636defdaaaa57204bae8fbab&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/20033a35a9cbf345636defdaaaa57204bae8fbab&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10715" name="odm_functionalTest_testFlushEmbedded.php" size="869" author="pgodel" created="Tue, 3 Aug 2010 21:46:17 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-35] Proxy item gets reset on persistent collection load if that item was in the collection</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-35</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description></description>
                <environment></environment>
            <key id="11706">MODM-35</key>
            <summary>Proxy item gets reset on persistent collection load if that item was in the collection</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="avalanche123">Bulat Shakirzyanov</reporter>
                        <labels>
                    </labels>
                <created>Mon, 2 Aug 2010 10:01:43 +0000</created>
                <updated>Fri, 6 Aug 2010 22:13:51 +0000</updated>
                    <resolved>Fri, 6 Aug 2010 22:13:41 +0000</resolved>
                            <version>1.0.0ALPHA2</version>
                                <fixVersion>1.0.0BETA1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13802" author="jwage" created="Fri, 6 Aug 2010 22:13:41 +0000"  >&lt;p&gt;&lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/236d4c6fad228f281a6fff9979c5fdc3773969e1&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/236d4c6fad228f281a6fff9979c5fdc3773969e1&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-34] Custom Id always gets sent with changeset </title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-34</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Whenever the Unit of Work computes the changeset for a document with custom id, the id attribute always gets sent. &lt;/p&gt;</description>
                <environment></environment>
            <key id="11705">MODM-34</key>
            <summary>Custom Id always gets sent with changeset </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="avalanche123">Bulat Shakirzyanov</assignee>
                                <reporter username="avalanche123">Bulat Shakirzyanov</reporter>
                        <labels>
                    </labels>
                <created>Mon, 2 Aug 2010 09:24:47 +0000</created>
                <updated>Fri, 6 Aug 2010 23:15:38 +0000</updated>
                    <resolved>Fri, 6 Aug 2010 23:15:38 +0000</resolved>
                                            <fixVersion>1.0.0BETA1</fixVersion>
                                <component>UnitOfWork</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13804" author="jwage" created="Fri, 6 Aug 2010 23:15:38 +0000"  >&lt;p&gt;&lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/ad8a7821bd176e875b9ec1f756c32a15eed31fb3&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/ad8a7821bd176e875b9ec1f756c32a15eed31fb3&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-33] Class-level annotations are ignored if set on MappedSuperclass</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-33</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Class-level annotations: @HasLifecycleCallbacks, @InheritanceType, @DiscriminatorField, @DiscriminatorMap have no effect when defined on @MappedSuperclass&lt;/p&gt;

&lt;p&gt;You must explicitly set @HasLifecycleCallbacks for every document class to make callback work. As for inheritance annotations, you have to copy-paste all annotations to all document classes to make it work.&lt;/p&gt;

&lt;p&gt;Simple example:&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;/**
 * @MappedSuperclass
 * @HasLifecycleCallbacks
 */
&lt;span class=&quot;code-keyword&quot;&gt;abstract&lt;/span&gt; class a
{
    /** @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $a = &apos;&apos;;

    /** @PrePersist */
    function prePersist() {$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;a = &apos;a&apos;;}
}

/** @Document(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;,collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;) */
class b &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; a
{}

$b = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; b();
$dm-&amp;gt;persist($b);
$dm-&amp;gt;flush($b);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With this example prePersist won&apos;t be called. Not sure if it is bug or expected behavior, but it adds some inconvenience, especially with inheritance mapping.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11704">MODM-33</key>
            <summary>Class-level annotations are ignored if set on MappedSuperclass</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="jwage">Jonathan H. Wage</assignee>
                                <reporter username="vladar">Vladimir Razuvaev</reporter>
                        <labels>
                    </labels>
                <created>Mon, 2 Aug 2010 02:28:49 +0000</created>
                <updated>Fri, 6 Aug 2010 23:51:42 +0000</updated>
                    <resolved>Fri, 6 Aug 2010 23:51:42 +0000</resolved>
                                            <fixVersion>1.0.0BETA1</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13759" author="jwage" created="Mon, 2 Aug 2010 16:10:51 +0000"  >&lt;p&gt;This appears to work for me. I tested it here &lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/af9aa0f674f8b542c89f8c975ac403fd46f6e29e&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/af9aa0f674f8b542c89f8c975ac403fd46f6e29e&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="13763" author="vladar" created="Mon, 2 Aug 2010 23:49:11 +0000"  >&lt;p&gt;Hi, looks like it affected ALPHA1. &lt;br/&gt;
I just updated to latest version from git and this issue disappeared. &lt;/p&gt;

&lt;p&gt;Also, want to thank you and other committers for ODM project. It is really cool!&lt;/p&gt;</comment>
                    <comment id="13780" author="vladar" created="Thu, 5 Aug 2010 01:08:52 +0000"  >&lt;p&gt;Looks like issue still exists for inheritance. At least following test case doesn&apos;t work for me on the latest version from git:&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;/**
 * @MappedSuperClass
 * @InheritanceType(&lt;span class=&quot;code-quote&quot;&gt;&quot;SINGLE_COLLECTION&quot;&lt;/span&gt;)
 * @DiscriminatorField(fieldName=&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;)
 * @DiscriminatorMap({
 *     &lt;span class=&quot;code-quote&quot;&gt;&quot;b&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;b&quot;&lt;/span&gt;,
 *     &lt;span class=&quot;code-quote&quot;&gt;&quot;c&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;c&quot;&lt;/span&gt;
 * })
 */
&lt;span class=&quot;code-keyword&quot;&gt;abstract&lt;/span&gt; class a
{
    /** @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $a = &apos;&apos;;
}

/** @Document(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;,collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;) */
class b &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; a
{}

/** @Document(db=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;,collection=&lt;span class=&quot;code-quote&quot;&gt;&quot;tests&quot;&lt;/span&gt;) */
class c &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; a
{}

$b = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; b();
$dm-&amp;gt;persist($b);
$dm-&amp;gt;flush($b);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;New document will be created without &quot;type&quot; field. It works properly only if I copy-paste all annotations to every document class (b, c, etc).&lt;/p&gt;</comment>
                    <comment id="13787" author="jwage" created="Thu, 5 Aug 2010 11:32:27 +0000"  >&lt;p&gt;I don&apos;t think that is supposed to work. Try removing the @MappedSuperclass annotation.&lt;/p&gt;</comment>
                    <comment id="13790" author="vladar" created="Thu, 5 Aug 2010 23:46:24 +0000"  >&lt;p&gt;Removing @MappedSuperClass didn&apos;t help, but adding @Document annotation on abstract class did (it also allows to remove @Document annotation on concrete classes). &lt;/p&gt;

&lt;p&gt;The main point was to avoid annotations duplication, so I think this solution works pretty well. But maybe worth mentioning in the documentation, because it is pretty common use case to have one abstract class and several subclasses within same collection. And it took some time for me to find out how that could be done.&lt;/p&gt;</comment>
                    <comment id="13806" author="jwage" created="Fri, 6 Aug 2010 23:51:42 +0000"  >&lt;p&gt;Pretty sure it is fixed now.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/7ca29f25f7018b781183cf72082802ab4dcc567a&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/7ca29f25f7018b781183cf72082802ab4dcc567a&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-32] dbref $id persisted as string instead of objectid</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-32</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;A clone of &lt;a href=&quot;http://github.com/doctrine/mongodb-odm/issues/issue/2/&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/issues/issue/2/&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11702">MODM-32</key>
            <summary>dbref $id persisted as string instead of objectid</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="avalanche123">Bulat Shakirzyanov</assignee>
                                <reporter username="avalanche123">Bulat Shakirzyanov</reporter>
                        <labels>
                    </labels>
                <created>Sat, 31 Jul 2010 09:56:42 +0000</created>
                <updated>Fri, 6 Aug 2010 22:09:43 +0000</updated>
                    <resolved>Fri, 6 Aug 2010 22:09:43 +0000</resolved>
                            <version>1.0.0ALPHA1</version>
                <version>1.0.0ALPHA2</version>
                <version>1.0.0BETA1</version>
                                <fixVersion>1.0.0BETA1</fixVersion>
                                <component>Persister</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13800" author="jwage" created="Fri, 6 Aug 2010 22:09:43 +0000"  >&lt;p&gt;&lt;a href=&quot;http://github.com/doctrine/mongodb-odm/commit/935759b498a057d08652379fb8133bb238b23a18&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/mongodb-odm/commit/935759b498a057d08652379fb8133bb238b23a18&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>