Skip to content
Permalink
Browse files

Fixing problems after renaming class

  • Loading branch information...
lorenzo committed Apr 1, 2013
1 parent 3588d1b commit 17d6ad648dfa61e513758da7e5ac0464e57987a2
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Model/Datasource/Database/Dialect/SqliteDialectTrait.php
@@ -17,6 +17,7 @@
*/
namespace Cake\Model\Datasource\Database\Dialect;
use Cake\Model\Datasource\Database\ExpressionInterface;
use Cake\Model\Datasource\Database\Expression\FunctionExpression;
use Cake\Model\Datasource\Database\Query;
use Cake\Model\Datasource\Database\SqlDialectTrait;
@@ -107,7 +108,7 @@ protected function _insertQueryTranslator($query) {
$values[] = $val;
$val = array_merge($val, array_fill(0, count($cols) - count($val), null));
$val = array_map(function($val) {
return $val instanceof Expression ? $val : '?';
return $val instanceof ExpressionInterface ? $val : '?';
}, $val);
if ($k === 0) {

0 comments on commit 17d6ad6

Please sign in to comment.
You can’t perform that action at this time.