I have set up the Symfony 2 sandbox and am having a bit of trouble
retrieving records from MongoDB.
I created a basic User object with firstName, lastName, and email. I
can insert records just fine, but when I run:
$dm = $this->get('doctrine.odm.mongodb.document_manager');
$dm->getRepository('SiteBundle:User')->findAll();
I receive an error that says the following:
Neither property "email" nor method "getEmail()" nor method
"isEmail()" exists in class "Doctrine\ODM\MongoDB\LoggableCursor"
I'm not sure if this is a bug or if I am just doing something wrong.
When I run findAll() on this document from the command line, I am able
to retrieve records.
Also, I'm new to Symfony, so please let me know if this is the wrong
place to post this question.
Thank you!
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en