public function whereIn($field, array $values) { return $this->where($field, array('$in' => $values)); }
/** * Filter by list of \MongoId * * @param array $idList list of ids * @return \Sokil\Mongo\Cursor */ public function byIdList(array $idList) { $this->expression->whereIn('_id', self::mixedToMongoIdList($idList)); return $this; }