Yes, you don't need the annotation cache if you are already caching
mappings, since you won't hit the annotation driver again. The cached
reader is mostly useful for when you don't use annotations for mappings.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 9 January 2014 10:46, Matthieu Napoli <[email protected]> wrote:

> Here is my configuration code:
>
> $cachedAnnotationReader = new CachedReader(new AnnotationReader(), $cache);
> $doctrineConfig->setMetadataDriverImpl($cachedAnnotationReader);
>
> $doctrineConfig->setMetadataCacheImpl($cache);
>
> I came up with that code after reading the documentation, but it seems the
> cache is being used twice? Can I just skip the CachedReader?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to