Actions
Feature #882
closedmethod of dbo::collection to test whether object belongs to collection
Start date:
06/30/2011
Due date:
% Done:
0%
Estimated time:
Description
Hello!
Could you provide method of dbo::collection to test whether object belongs to collection?
Currently only way to do it is using of collection.find:
if(p->tags.find().where("id = ?").bind(cooking.id()).resultList().size() == 1)
It can be replaced with
if(p->tags.has(cooking))
Updated by Koen Deforche over 13 years ago
- Status changed from New to Resolved
- Target version set to 3.1.11
Actions