Closed hwde closed 7 years ago
Was the uncertainty, described in the first comment, resolved? If so, tests would also be great. ;)
Well, I thought about to throw a ServerException for not found in batched firstExample() ... but there are other function calls (i.e. CollectionHandler::has()) which also just return false for not found instead of throwing an excption. I'll will push a pull request with a test for the current behaviour in a few minutes.
It seems to me that byExample could be used in batch very well, but I'm unsure how to handle "nothing found" of firstExample()