I'm Using this bundle to manage my data
I'm able to create the document, but I can't retrieve them I tried with
$dm = $this->container->get('doctrine_couchdb.odm.default_document_manager');
$users = $dm->getRepository('myGarageBundle:Utente')->find("781f1ea2e6281beb4ee9ff72b6054af2");
and this retrieve one document like this:
object(my\GarageBundle\CouchDocument\Utente)[303]
private 'id' => string '781f1ea2e6281beb4ee9ff72b6054af2' (length=32)
private 'name' => string 'foo' (length=7)
And this is ok. But If i do
$users = $dm->getRepository('myGarageBundle:Utente')->findBy(array('name' => 'foo'));
I have got an empty Array.
My document in my couchDb is
{"_id":"781f1ea2e6281beb4ee9ff72b6054af2","_rev":"1-f89fc2372709de90ab5d1f6cfe6a8f47","type":"my.GarageBundle.CouchDocument.Utente","name":"foo"}