Hello!
I pretty much followed the Getting Started
<http://docs.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/tutorials/getting-started.html>
documentation for Doctrine MongoDB.
But when I come to:
$user = $dm->find('User', $userId);
I get :
Doctrine\Common\Persistence\Mapping\MappingException
However, what works is to use the fully qualified class name:
$user = $dm->find('MyNamespace\Documents\User', $userId);
In the documentation, all examples only use the simple class name and I
would like to use them, too.
Does anyone know, where the problem might be?
--
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 https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.