Posted By

jdbartlett on 05/07/09


Tagged

cakephp


Versions (?)

Saving CakePHP Model data with MySQL functions


 / Published in: PHP
 

  1. function modelFunction() {
  2. $this->data[$this->alias]['datetime_field'] = DboSource::expression('NOW()');
  3. $this->save();
  4. }

Report this snippet  

You need to login to post a comment.