Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Model/Datasource/MongodbSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

/**
Expand Down Expand Up @@ -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'),
Expand Down Expand Up @@ -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;
Expand Down