Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# app/Model/AppModel.php
class AppModel extends Model {
public function save($data = null, $validate = true, $fieldList = array()) {
// se esiste il campo modified verrà rimosso dall'array
if (isset($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