Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes made for cake 2.9 compatibility #140

Open
wants to merge 1 commit into
base: cake2.2
Choose a base branch
from
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
5 changes: 3 additions & 2 deletions Model/Datasource/MongodbSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -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;
Expand Down