diff --git a/Model/Datasource/MongodbSource.php b/Model/Datasource/MongodbSource.php index 3ce32e1..a37b4b5 100755 --- a/Model/Datasource/MongodbSource.php +++ b/Model/Datasource/MongodbSource.php @@ -1313,10 +1313,11 @@ public function mapReduce($query, $timeout = null) { * * @param mixed $data A value or an array of values to prepare. * @param string $column The column into which this data will be inserted + * @param boolean $null available in DataSource cakePhp 2.9, Column allows NULL values * @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 +1474,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;