Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function removepopup($id){
- $collection = $this->connect()->deleteOne(['_id' => new MongoDBBSONObjectID( $id )]);
- }
- public function removepopup($id){
- $collection = $this->connect()->deleteOne(['_id' => new MongoDBBSONObjectID( $id )]);
- if($collection->getDeletedCount() == 0){
- //No se ha eliminado ninguna fila
- return false;
- }
- return true;
- }
Add Comment
Please, Sign In to add comment