colinmollenhour / mongodb-php-odm

A simple but powerful set of wrappers for using MongoDb in PHP (also a Kohana 3 module)
BSD 3-Clause "New" or "Revised" License
208 stars 50 forks source link

fixed using a boolean for MongoCollection::remove's second option #25

Closed kohenkatz closed 12 years ago

kohenkatz commented 12 years ago

In version 1.0.5, some of the MongoDB driver's methods were changed to take arrays instead of scalar options. In 1.2.11, providing a scalar now emits an E_DEPRECATED error.

There was one location (that I could find) that was still using the scalar (boolean) argument to MongoCollection::remove. This pull request changes it to use the array form instead.

Note that all other calls to this function are already using an array.

colinmollenhour commented 12 years ago

Thanks!