Hi!
I have this error when i try to use the AnnotationDriver:
[Doctrine\Common\Persistence\Mapping\MappingException] 
Specifying the paths to your entities is required in the AnnotationDriver 
to retrieve all class names.  

This is the line i typed in the cli:
php cli-doctrine.php orm:generate-entities models 
--generate-annotations=true

I installed Doctrine 2.4.6 in CodeIgniter 3.

I configured the Annotation driver with these lines in my Doctrine.php:
$yamlDriver = new 
\Doctrine\ORM\Mapping\Driver\YamlDriver(APPPATH.'models/Mappings');
//    $config->setMetadataDriverImpl($yamlDriver);
$annotationDriver = new 
\Doctrine\ORM\Mapping\Driver\AnnotationDriver(APPPATH.'models/Mappings');
$config->setMetadataDriverImpl($annotationDriver);

If i use the YamlDriver instead it works fine.

I have the Test.php file in models/Mappings.

How can i fix it?

-- 
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/d/optout.

Reply via email to