Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
# app/Model/AppModel.php
class AppModel extends Model {
public function save($data = null, $validate = true, $fieldList = array()) {
$this->set($data);
// se esiste il campo modified verrà rimosso dall'array
if (isset($this->data[$this->alias]['modified'])) {
unset($this->data[$this->alias]['modified']);
}
return parent::save($this->data, $validate, $fieldList);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.