Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: 2.2.1
-
Fix Version/s: None
-
Component/s: ORM
-
Labels:None
-
Environment:Ubuntu 11.10, standard composer install of symfony2.1 and doctrine 2.2.1
Description
Hello,
It seem that when I'm doing something like: $g = $this->getDoctrine()>getManager('default')>find('AcmeDemoBundle:User', 5); the query is executed every time even if the cache is set to use APC for both the query and the results.
Doing a query via QueryBuilder and setting the cache explicitly will take advantage of the caching mechanism but I believe this shouldn't be the default way of working for caching.
I mean that if I configure the cache to be used, one would expect it to work.
Caching only works for DQL as of now.
There are tickets that cover the other stuff, which is a feature request.