hot fix => AppModel beforeSave variable added for compatibility with PHP 5.4 in other servers