I had an entity class in Aib\\PlatformBundle\\Entity\\User.php
I had no problems trying to create its form class through
php app/ console doc
I solved this by passing false
as the second parameter to Doctrine\ORM\Configuration::newDefaultAnnotationDriver
.
It took me a while of digging through Google and source code.
My case was sort of special since I was using a mapping pointing to another directory unrelated to the Symfony installation as I also had to use legacy code.
I had refactored legacy entities and they stopped working. They used to use @Annotation
instead of @ORM\Annotation
, so after refactoring it simply failed to read the metadata. By not using a simple annotation reader, everything seems to be okayish.