Normally in Doctrine2 you can do this:
AnnotationBuilder uses DocParser through AnnotationManager that does not seem to be allowing to cache Annotation based form config unlike AnnotationReader that does allow to cache Annotations for all entites.
Code: Select all
<?php use Doctrine\Common\Annotations\FileCacheReader; use Doctrine\Common\Annotations\AnnotationReader; $reader = new FileCacheReader( new AnnotationReader(), "/path/to/cache", $debug = true );
Is there any way - other than storing Form objects in cache to make working with AnnotationBuilder easier and more efficient so it doesn't have to parse Annotations every time the script loads?