![]() |
Delete from MongoDB using MongoDB Librar - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Delete from MongoDB using MongoDB Librar (/showthread.php?tid=56291) |
Delete from MongoDB using MongoDB Librar - El Forum - 12-07-2012 [eluser]sweetD[/eluser] Hey guys, I'm using the following mongoDB library but I can't seem to be able to figure out how to delete a document from the collection; https://github.com/alexbilbie/codeigniter-mongodb-library/tree/v2 I have tried; Code: $id = new MongId($id); and; Code: $id = new MongId($id); I just keep getting a 500 error. Delete from MongoDB using MongoDB Librar - El Forum - 12-08-2012 [eluser]sweetD[/eluser] This is the function from the library to delete, I don't get what I am not doing correctly. Code: public function delete($collection = '') |