Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
We should be able to tell Doctrine that we want the result of requests on ReadOnly marked Entities to be cached.
For instance:
$person->getMoodInformation();
$person->getCityInformation();
CityInformation are not likely to change so it would make sense to cache it and retrieve only MoodInformation (by using an annotation on the concerned Entity).
What would be even better is to tag which properies we want to hydrate from database and which properties we want to hydrate from cache.