Project

General

Profile

Actions

Feature #882

closed

method of dbo::collection to test whether object belongs to collection

Added by Boris Nagaev almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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))
#2

Updated by Koen Deforche almost 14 years ago

  • Assignee set to Koen Deforche
#3

Updated by Koen Deforche over 13 years ago

  • Tracker changed from Bug to Feature
#4

Updated by Koen Deforche over 13 years ago

  • Status changed from New to Resolved
  • Target version set to 3.1.11
#5

Updated by Koen Deforche over 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF