Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

DocumentRepository::findBy(array('id' => '')) returns empty result #82

Open
frne opened this issue Oct 30, 2013 · 0 comments
Open

DocumentRepository::findBy(array('id' => '')) returns empty result #82

frne opened this issue Oct 30, 2013 · 0 comments

Comments

@frne
Copy link

frne commented Oct 30, 2013

The findBy method of class Doctrine\ODM\CouchDB\DocumentRepository returns an empty result while searching for criteria id.

$documentManager = $this->container
->get('doctrine_couchdb.odm.default_document_manager');

$repository = $documentManager
->getRepository('ACME\FooBundle\CouchDocument\User');

var_dump(
  $repository->find('9142249159baef526ebd78c088009861')
);
// returns expected result

var_dump(
  $repository->findBy(
    array('id' => '9142249159baef526ebd78c088009861')
  )
);
// returns an empty array

// tested with CouchDB 1.4.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant