diff --git a/Model/Datasource/MongodbSource.php b/Model/Datasource/MongodbSource.php index 3ce32e1..bce113a 100755 --- a/Model/Datasource/MongodbSource.php +++ b/Model/Datasource/MongodbSource.php @@ -607,7 +607,7 @@ public function dropSchema(CakeSchema $schema, $tableName = null) { $return = "toDrop = :tables;\nfor( i = 0; i < toDrop.length; i++ ) {\n\tdb[toDrop[i]].drop();\n}"; $tables = '["' . implode($toDrop, '", "') . '"]'; - return String::insert($return, compact('tables')); + return CakeText::insert($return, compact('tables')); } /** @@ -1316,7 +1316,7 @@ public function mapReduce($query, $timeout = null) { * @return mixed Prepared value or array of values. * @access public */ - public function value($data, $column = null) { + public function value($data, $column = null, $null = true) { if (is_array($data) && !empty($data)) { return array_map( array(&$this, 'value'), @@ -1473,7 +1473,7 @@ public function setTimeout($ms){ public function logQuery($query, $args = array()) { if ($args) { $this->_stringify($args); - $query = String::insert($query, $args); + $query = CakeText::insert($query, $args); } $this->took = round((microtime(true) - $this->_startTime) * 1000, 0); $this->affected = null;