<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 18 20:47:03 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.0ALPHA2%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.0ALPHA2%22</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="13" total="13"/>
                <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-28] xml mapping : embedded-document  node is ignored, can&apos;t persist </title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-28</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&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-comment&quot;&gt;//file Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php line 171
&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; function _loadMappingFile($file)
    {
        $result = array();
        $xmlElement = simplexml_load_file($file);

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($xmlElement-&amp;gt;document)) {
            foreach ($xmlElement-&amp;gt;document as $documentElement) {
                $documentName = (string) $documentElement[&apos;name&apos;];
                $result[$documentName] = $documentElement;
            }
        }
        
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $result;
    }

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;embedded-document  and mapped-superclass are ignored so embed documents are not persisted&lt;/p&gt;

</description>
                <environment></environment>
            <key id="11681">MODM-28</key>
            <summary>xml mapping : embedded-document  node is ignored, can&apos;t persist </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="jenreve">julien rollin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 26 Jul 2010 13:04:22 +0000</created>
                <updated>Tue, 27 Jul 2010 10:55:23 +0000</updated>
                    <resolved>Tue, 27 Jul 2010 10:55:23 +0000</resolved>
                            <version>1.0.0ALPHA1</version>
                                <fixVersion>1.0.0ALPHA2</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-26] MongoCursor doesn&apos;t implement Countable interface</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-26</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;this causes confusion when query returns empty array instead of MongoCursor object, meaning you can&apos;t use neither count($result) nor $result-&amp;gt;count(), and have to check for the returned type explicitly&lt;/p&gt;</description>
                <environment></environment>
            <key id="11621">MODM-26</key>
            <summary>MongoCursor doesn&apos;t implement Countable interface</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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>Tue, 13 Jul 2010 10:40:39 +0000</created>
                <updated>Mon, 19 Jul 2010 13:09:48 +0000</updated>
                    <resolved>Mon, 19 Jul 2010 13:09:19 +0000</resolved>
                            <version>1.0.0ALPHA1</version>
                                <fixVersion>1.0.0ALPHA2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13610" author="jwage" created="Mon, 19 Jul 2010 13:09:48 +0000"  >&lt;p&gt;Fixed and added a MongoCursorTest file.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-25] AnnotationDriver.php Line 175</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-25</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;$mapping&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;fieldName&amp;#39;&amp;#93;&lt;/span&gt; should be replace with something else.&lt;br/&gt;
Maybe create a whole new metadata property, or map load methods as onLoad lyfecycle events...&lt;/p&gt;</description>
                <environment></environment>
            <key id="11595">MODM-25</key>
            <summary>AnnotationDriver.php Line 175</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>Wed, 7 Jul 2010 17:25:12 +0000</created>
                <updated>Mon, 19 Jul 2010 14:28:20 +0000</updated>
                    <resolved>Mon, 19 Jul 2010 14:28:20 +0000</resolved>
                            <version>1.0.0ALPHA1</version>
                                <fixVersion>1.0.0ALPHA2</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-24] Hydratation of extra fields</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-24</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;I&apos;m working on a project using MongoDB with ODM especially for the schemaless features.&lt;br/&gt;
So I have one collection with some default fields in my base class.&lt;br/&gt;
Every inherited class add fields but we&apos;re still in the same collection.&lt;/p&gt;

&lt;p&gt;First, prior to save the document, I add the new mappings (imported from the inherited class) so they will be saved in the database. This part works fine.&lt;br/&gt;
The problem is that when the ODM hydrates the documents, it sticks to the $metadata-&amp;gt;fieldMappings defined by the base class, and ignore the others.&lt;/p&gt;

&lt;p&gt;I&apos;ve made a quick patch for that, but it doesn&apos;t make any type cast, I didn&apos;t inspect the code deep enough to make it better.&lt;/p&gt;

&lt;p&gt;In the Doctrine\ODM\MongoDB\Hydrator class (line 73) :&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 hydrate(ClassMetadata $metadata, $document, $data)
    {
        $values = array();

        &lt;span class=&quot;code-comment&quot;&gt;// Patch
&lt;/span&gt;        foreach ($data as $field =&amp;gt; $value)
        {
          &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(!array_key_exists($field, $metadata-&amp;gt;fieldMappings))
          {
            $document-&amp;gt;$field = $value;
          }
        }
        &lt;span class=&quot;code-comment&quot;&gt;// end Patch
&lt;/span&gt;
        foreach ($metadata-&amp;gt;fieldMappings as $mapping) {
[...]

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="11590">MODM-24</key>
            <summary>Hydratation of extra fields</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="oktodindon">Anonymous</reporter>
                        <labels>
                    </labels>
                <created>Tue, 6 Jul 2010 05:14:40 +0000</created>
                <updated>Mon, 19 Jul 2010 23:15:39 +0000</updated>
                    <resolved>Mon, 19 Jul 2010 23:15:39 +0000</resolved>
                                            <fixVersion>1.0.0ALPHA2</fixVersion>
                                <component>Hydration</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13613" author="jwage" created="Mon, 19 Jul 2010 23:15:21 +0000"  >&lt;p&gt;This is fixed now. Make sure your classes inheritance mapping is setup properly too if you have other problems.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-22] Document incorrectly scheduled for update</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-22</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;I have the following documents:&lt;/p&gt;

&lt;p&gt;Product:&lt;br/&gt;
  product_id&lt;br/&gt;
  sellable (dbref)&lt;/p&gt;

&lt;p&gt;Sellable:&lt;br/&gt;
  product (dbref)&lt;br/&gt;
  seller (dbref)&lt;/p&gt;

&lt;p&gt;Seller:&lt;br/&gt;
  name&lt;/p&gt;

&lt;p&gt;If I create a new Sellable for a seller the seller gets scheduled for update even if nothing has changed.The document persister correctly doesn&apos;t try to actually execute the update but Lifecycle events still get called. The flow is:&lt;/p&gt;

&lt;p&gt;1. Schedule for update&lt;br/&gt;
2. Call _executeUpdate&lt;br/&gt;
3. Call preUpdate&lt;br/&gt;
4. Call BasicDocumentPersister::update(), which does nothing because of no actual changes&lt;br/&gt;
5. Call postUpdate.&lt;/p&gt;

&lt;p&gt;preUpdate and postUpdate being called when there&apos;s no actual changes is causing problems. It seems like the proper course of action would be to either not schedule the document for update or check if there&apos;s any actual changes before calling preUpdate and postUpdate.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11564">MODM-22</key>
            <summary>Document incorrectly scheduled for update</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="5">Cannot Reproduce</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="ssurowiec">Steven Surowiec</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Jun 2010 16:45:31 +0000</created>
                <updated>Mon, 19 Jul 2010 23:52:55 +0000</updated>
                    <resolved>Mon, 19 Jul 2010 23:52:55 +0000</resolved>
                                            <fixVersion>1.0.0ALPHA2</fixVersion>
                                <component>Document Manager</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13520" author="jwage" created="Mon, 5 Jul 2010 12:25:36 +0000"  >&lt;p&gt;I will take a look at this. Can you try creating a test case that reproduces the issue?&lt;/p&gt;</comment>
                    <comment id="13581" author="jwage" created="Tue, 13 Jul 2010 13:27:45 +0000"  >&lt;p&gt;Bulat, is this not fixed?&lt;/p&gt;</comment>
                    <comment id="13611" author="jwage" created="Mon, 19 Jul 2010 15:49:27 +0000"  >&lt;p&gt;Any chance of a test case? Could you provide the documents you are using?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-21] AnnotationDriver doesn&apos;t allow custom types</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-21</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Right now AnnotationDriver.php does not allow you to create custom types. You can with YAML and XML but the $types array on line ~142 of AnnotationDriver.php is hard coded so there&apos;s no way to get a custom type in there.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11562">MODM-21</key>
            <summary>AnnotationDriver doesn&apos;t allow custom types</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="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="ssurowiec">Steven Surowiec</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Jun 2010 10:47:46 +0000</created>
                <updated>Mon, 19 Jul 2010 15:01:15 +0000</updated>
                    <resolved>Mon, 19 Jul 2010 15:01:15 +0000</resolved>
                                            <fixVersion>1.0.0ALPHA2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-19] Field annotation missing &quot;name&quot; support</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-19</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Documentation states that field names can be overriden by using a &quot;name&quot; parameter but Doctrine throws exception.&lt;br/&gt;
Also there is a missing comma in the documentation between the type and name params.&lt;/p&gt;

&lt;p&gt;From documentation:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/projects/mongodb_odm/1.0/docs/reference/annotations-reference/en#ann_field&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/mongodb_odm/1.0/docs/reference/annotations-reference/en#ann_field&lt;/a&gt;&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;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;/**
 * @Field(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt; name=&lt;span class=&quot;code-quote&quot;&gt;&quot;origin&quot;&lt;/span&gt;)
 */
&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $country;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;My source code:&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;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;    /**
     * @Field(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;password&quot;&lt;/span&gt;)
    **/
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $_password;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Exception:&lt;/p&gt;

&lt;p&gt;BadMethodCallException:&lt;br/&gt;
Unknown property &apos;name&apos; on annotation &apos;Doctrine\ODM\MongoDB\Mapping\Field&apos;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11537">MODM-19</key>
            <summary>Field annotation missing &quot;name&quot; support</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="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="rabbit">Rabbit</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 Jun 2010 16:06:17 +0000</created>
                <updated>Mon, 19 Jul 2010 15:51:10 +0000</updated>
                    <resolved>Mon, 19 Jul 2010 15:51:10 +0000</resolved>
                            <version>1.0.0ALPHA1</version>
                                <fixVersion>1.0.0ALPHA2</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-17] Multiple array / object with same content/properties do not get persisted </title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-17</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;If I have a Collection field and try to add 2 values that are the same, the second value never gets saved to the document.  Example code:&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;class User
{
  /** @Id */
  &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $id;

  /** @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; */
  &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $name;

  /** @Collection */
  &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $logs = array();

}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;    $o = $dm-&amp;gt;findOne(&apos;:User&apos;, array(&apos;name&apos; =&amp;gt; $arguments[&apos;name&apos;]));

    $found = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;

    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!$o) {
      $found = &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
      $o = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; User();
    }

    $o-&amp;gt;setName($arguments[&apos;name&apos;]);

    $o-&amp;gt;addLog( array(&apos;a&apos; =&amp;gt; &apos;b&apos; ));

    $dm-&amp;gt;persist($o);

    $dm-&amp;gt;flush();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;or a EmbeddedMany field, and try to add to add 2  objects with the same content the same thing happens:&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;class User
{
  /** @Id */
  &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $id;

  /** @&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; */
  &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $name;

  /** @EmbedMany(targetDocument=&lt;span class=&quot;code-quote&quot;&gt;&quot;UserLog&quot;&lt;/span&gt;) */
  &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $logs = array();
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;    $o = $dm-&amp;gt;findOne(&apos;:User&apos;, array(&apos;name&apos; =&amp;gt; $arguments[&apos;name&apos;]));

    $found = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;

    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!$o) {
      $found = &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
      $o = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; User();
    }

    $o-&amp;gt;setName($arguments[&apos;name&apos;]);

    $l = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; UserLog();

    $l-&amp;gt;setMsg(&apos;Testing&apos;);

    $o-&amp;gt;addLog($l);

    $dm-&amp;gt;persist($o);

    $dm-&amp;gt;flush();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If I change     $l-&amp;gt;setMsg(&apos;Testing&apos;.time());&lt;/p&gt;

&lt;p&gt;then it adds all the instances.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11516">MODM-17</key>
            <summary>Multiple array / object with same content/properties do not get persisted </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>Thu, 17 Jun 2010 10:55:10 +0000</created>
                <updated>Mon, 19 Jul 2010 17:13:16 +0000</updated>
                    <resolved>Mon, 19 Jul 2010 17:13:16 +0000</resolved>
                                            <fixVersion>1.0.0ALPHA2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13612" author="jwage" created="Mon, 19 Jul 2010 16:11:25 +0000"  >&lt;p&gt;Seems to be working now.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-16] loadById failing on custom ids</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-16</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;DocumentManager::loadByID is failing on custom ids right now because it&apos;s checking for the custom id flag on the metadata and converting to \MongoID. It should probably be using the new $class-&amp;gt;getPHPIdentifierValue method instead.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11513">MODM-16</key>
            <summary>loadById failing on custom ids</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="ssurowiec">Steven Surowiec</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Jun 2010 08:40:29 +0000</created>
                <updated>Thu, 17 Jun 2010 09:11:33 +0000</updated>
                    <resolved>Thu, 17 Jun 2010 09:11:33 +0000</resolved>
                                            <fixVersion>1.0.0ALPHA2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13355" author="ssurowiec" created="Thu, 17 Jun 2010 08:41:27 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;http://github.com/opensky/mongodb-odm/commit/78ac8bf8e31e91f88d2cdd7918db3ebaafe76a63&quot; class=&quot;external-link&quot;&gt;http://github.com/opensky/mongodb-odm/commit/78ac8bf8e31e91f88d2cdd7918db3ebaafe76a63&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="13356" author="jwage" created="Thu, 17 Jun 2010 09:11:33 +0000"  >&lt;p&gt;Thanks for the issue and fix!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-14] Default database when @Document annotation does not contain a db attribute.</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-14</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;When a Document is annotated with @Document(collection=&quot;test&quot;) and is missing the db attribute the ODM defaults to mongo_dev. What i expected was it defaulted to the database name given when creating a connection.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11476">MODM-14</key>
            <summary>Default database when @Document annotation does not contain a db attribute.</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="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="7">Can&apos;t Fix</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="henrikbjorn">Henrik Bjornskov</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Jun 2010 14:39:33 +0000</created>
                <updated>Fri, 11 Jun 2010 15:06:46 +0000</updated>
                    <resolved>Fri, 11 Jun 2010 15:06:46 +0000</resolved>
                                            <fixVersion>1.0.0ALPHA2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13279" author="jwage" created="Fri, 11 Jun 2010 15:06:32 +0000"  >&lt;p&gt;We have no way to retrieve the database you connected to so you have to configure it by setting $config-&amp;gt;setDefaultDB(&apos;db_name&apos;);&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-13] Problems with merge()</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-13</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;while doing a merge, I got some PHP errors.&lt;br/&gt;
Seems like these steps fix the problem:&lt;br/&gt;
1. Change line 1215 of UnitOfWork.php to&lt;br/&gt;
$id = $class-&amp;gt;getIdentifierValue($document);&lt;br/&gt;
it was ValueS before&lt;/p&gt;

&lt;p&gt;2. in function _cascadeMerge starting in line 1464 of UnitOfWork.php&lt;br/&gt;
change the inner calls from:&lt;br/&gt;
                        $this-&amp;gt;_cascadeMerge($relatedDocument, $visited);&lt;br/&gt;
To:&lt;br/&gt;
                        $this-&amp;gt;_cascadeMerge($relatedDocument, $managedCopy, $visited);&lt;/p&gt;

&lt;p&gt;I didn&apos;t look deeper into ODM, just tried this to things and it seems to work now, so please excuse if it&apos;s bs ... &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/wink.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;</description>
                <environment>OSX, HEAD</environment>
            <key id="11471">MODM-13</key>
            <summary>Problems with merge()</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="fkubis">Florian Kubis</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Jun 2010 08:51:03 +0000</created>
                <updated>Thu, 10 Jun 2010 09:00:24 +0000</updated>
                    <resolved>Thu, 10 Jun 2010 08:59:11 +0000</resolved>
                            <version>1.0.0ALPHA1</version>
                                <fixVersion>1.0.0ALPHA2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13267" author="jwage" created="Thu, 10 Jun 2010 09:00:24 +0000"  >&lt;p&gt;Thanks for reporting the issue!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-12] Undefined variable error</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-12</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;In UnitOfWork::_computeAssociationChanges there are several references to $document but $document is never declared in that method, or passed into it. From looking at ORM it looks like $entry is the right variable to be using here.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11469">MODM-12</key>
            <summary>Undefined variable 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="ssurowiec">Steven Surowiec</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Jun 2010 19:25:00 +0000</created>
                <updated>Wed, 9 Jun 2010 19:55:06 +0000</updated>
                    <resolved>Wed, 9 Jun 2010 19:46:06 +0000</resolved>
                            <version>1.0.0ALPHA1</version>
                                <fixVersion>1.0.0ALPHA2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13261" author="ssurowiec" created="Wed, 9 Jun 2010 19:27:42 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;http://github.com/opensky/mongodb-odm/tree/MODM-12&quot; class=&quot;external-link&quot;&gt;http://github.com/opensky/mongodb-odm/tree/MODM-12&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>