ichikaway/cakephp-mongodb — pull request #92 by davehensley (2014-03-03 20:56:25+00:00)
Title: Use setReadPreference() if setSlaveOkay() is not available

setSlaveOkay() was deprecated in version 1.2.11 of the Mongo driver, and has now been removed from 1.4+, so we need to use setReadPreference() instead.

http://www.php.net/manual/en/mongo.readpreferences.php