[MODM-165] Identity map doesn't work (tested only with Symfony) Created: 20/Apr/12  Updated: 20/Apr/12  Resolved: 20/Apr/12

Status: Resolved
Project: Doctrine MongoDB ODM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Ludovic Assignee: Jonathan H. Wage
Resolution: Invalid Votes: 0
Labels: None

mongodb version 2.0.2, mac os x lion, Symfony master


I tested a basic find (by id) query in Symfony and it seems that the identity map feature does not work.
here the code: https://gist.github.com/2431505

4 query with a default Doctrine ODM/Symfony configuration give me 4 query in mongostat.

Comment by Ludovic [ 20/Apr/12 ]

I misunderstood the identity map usage, actually I discover in the code that it was strictly restricted to find() method and the load method didn't fetch from the identityMap (even if the query carry only an id criteria). I'm not sure of all impact, but I think it could be quite easy to fix this. I'll try to open an issue and maybe to PR. Thanks.

Generated at Wed Dec 02 02:03:18 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.