/** * Set annotation manager to use when building form from annotations * * @param AnnotationManager $annotationManager * @return AnnotationBuilder */ public function setAnnotationManager(AnnotationManager $annotationManager) { parent::setAnnotationManager($annotationManager); $parser = new Parser\DoctrineAnnotationParser(); $parser->registerAnnotation('Doctrine\\ORM\\Mapping\\Column'); $parser->registerAnnotation('Doctrine\\ORM\\Mapping\\GeneratedValue'); $this->annotationManager->attach($parser); return $this; }