Ignore counter cache also

This commit is contained in:
AD7six 2015-01-22 22:57:24 +00:00
parent c0ee49fe88
commit 5e89e893f2

View file

@ -118,7 +118,11 @@ class DatabaseSession implements CakeSessionHandlerInterface {
$record = compact('id', 'data', 'expires');
$record[$this->_model->primaryKey] = $id;
$options = array('validate' => false, 'callbacks' => false);
$options = array(
'validate' => false,
'callbacks' => false,
'counterCache' => false
);
try {
return $this->_model->save($record, $options);
} catch (PDOException $e) {