Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.0BETA2
-
Fix Version/s: 1.0.0BETA2
-
Component/s: Hydration, Persister, UnitOfWork
-
Labels:None
-
Environment:Ubuntu, PHP 5.3.2, Mongo 1.6.3
Description
With documents that have embedded documents, the changeset is sometimes calculated incorrectly so that unmodified documents are flushed unnecessarily. This is similar in spirit to #MODM-83, but this isn't covered by that fix.
This can be seen when the document has an embedded document that uses a discriminator map. When calculating the changeset, the original value will have the discriminator field and value present while the actual value does not contain the discriminator field.
Covering tests with fixes to follow shortly.
Activity
Ryan Weaver
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
With documents that have embedded documents, the changeset is sometimes calculated incorrectly so that unmodified documents are flushed unnecessarily. This is similar in spirit to # The improper changeset occurs for two reasons (which made it hard to nail down): 1) The document has an embedded document that uses a discriminator map. When calculating the changeset, the original value will have the discriminator field and value present while the actual value does not contain the discriminator field. 2) The document has a null property. When creating the changeset, the original value will have no mention of the null property whereas the actual value will show the property with a null value. Covering tests with fixes to follow shortly. |
With documents that have embedded documents, the changeset is sometimes calculated incorrectly so that unmodified documents are flushed unnecessarily. This is similar in spirit to # This can be seen when the document has an embedded document that uses a discriminator map. When calculating the changeset, the original value will have the discriminator field and value present while the actual value does not contain the discriminator field. Covering tests with fixes to follow shortly. |
Bulat Shakirzyanov
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Fix Version/s | 1.0.0BETA2 [ 10092 ] | |
| Resolution | Fixed [ 1 ] |