Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.0BETA1
-
Fix Version/s: 1.0.0BETA2
-
Component/s: Document Manager, Document Repositories
-
Labels:None
Description
If I try to select a couple of documents with the in() query, I receive an empty result set when the selected field is the document id.
The following code works fine and selects the right document:
$query = $dm->createQueryBuilder("Object\Does\Not\Matter") ->field("id")->equals("4d1db8ba2d8aa162300a0000") ->getQuery()->execute();
Whereas the following query returns nothing:
$query = $dm->createQueryBuilder("Object\Does\Not\Matter") ->field("id")->in(array("4d1db8ba2d8aa162300a0000")) ->getQuery()->execute();
This should be fixed in the latest version in github. I resolved the issues with converting the different types of query parameters