views:

46

answers:

0

Hi,

I want to use the caching from Doctrin ORM for PHP.

In the model classes how Can I cache the results of the query depending on the value of a flag. I do not want to change the signature of the current methods...

Is there a way to set a global variable for the Doctrine ORM and to check that doctrine variable inside the model classes?

Does Doctrine know this?