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

Queries building problem with complex keys using last version of doctrine/couchdb-client. #54

Closed
adyshev opened this issue Nov 12, 2012 · 1 comment

Comments

@adyshev
Copy link

adyshev commented Nov 12, 2012

Created issue in doctrine/couchdb-client project: doctrine/couchdb-client#5
Sorry, reposted there.

In case of any query building process like:
$query = $this->dm->createQuery('doctrine_repositories', 'equal_constraint')
->setKey(array($this->documentType, $field, $value))
->setIncludeDocs(true)
->toArray(true);

(DocumentRepository.php)

With setKey parameter as complex key in array format, result query will be generated with "keys=" parameter (please check commit doctrine/couchdb-client@18f1d30) instead of "key=". And as result 0 result will be returned.

@beberlei
Copy link
Member

This explains several bugs in the testsuite. good catch.

@adyshev adyshev closed this as completed Nov 14, 2012
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

2 participants