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

Invalid query in case if complex key given. #5

Closed
adyshev opened this issue Nov 12, 2012 · 0 comments
Closed

Invalid query in case if complex key given. #5

adyshev opened this issue Nov 12, 2012 · 0 comments

Comments

@adyshev
Copy link

adyshev commented Nov 12, 2012

Please take a look to Query.php:
18f1d30

In case if complex key given (like ["Some.Name.Space","someField","Some value"]) in array() format invalid query will be generated (query with "keys=" parameter - should be "key=").

My suggestion is to remove execution redirection in "setKey" to "setKeys" method in case if Array given.

public function setKey($val)

To remove:
if (is_array($val)) {
return $this->setKeys($val);
}
....
}

such kind of keys are used in Doctrine couchdb-odm bundle for internal view-based searching mechanism.

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