identitymap

how to have identity map in doctine ORM

need to use a good PHP ORM that has elements of Datamapper and i am not clever enough to code it myself. chosen doctrine, but after reading through the user guide, cannot find anything that says how to use identity map to lower calls to database. please show me how to have identity map in doctrine ORM? just read and understood stuff ...

How can I get access to or replace LINQ to SQL's IdentityManager?

I need to find out if an object with a particular primary key is already attached to a DataContext and get the entity from the DataContext if it is attached. Is there any way at all to do this that doesn't require Reflection with full trust? Ideally, I would like to call GetCachedObject(), but I'd have to use reflection to get at that,...