You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @itavero
I'm not sure I understand you answer, can you explain?
I have fixed it already though
AnnotationRegistry::registerFile($app['db.orm.class_path'].'/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php');
$reader = new FileCacheReader(
new AnnotationReader(),
$app['em.cache_dir'].'/annotation',
$app['debug']
);
$driver = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($reader, $app['em.entity_dirs']);
In you're example you're telling Doctrine 2 to use your Entity class as the Repository class for that Entity. Just pointing out that that's probably not what you want.
This happens when entity uses ORM alias
like this
is it possible to fix this?
The text was updated successfully, but these errors were encountered: