Closed rhnkyr closed 8 years ago
I want to remove every document which have same id. My code is
$comments = $this->mongo->collection(Collections::COMMENTS); $comments->find(function ($query) use ($check) { $query->where('cid', $check)->remove()->multiple(); });
is this type of use correct? Thanks in advance...
Check out the Delete section of the gh-pages.
@bcrowe thanks.
I want to remove every document which have same id. My code is
is this type of use correct? Thanks in advance...