Return to Snippet

Revision: 13831
at May 7, 2009 11:54 by jdbartlett


Initial Code
function modelFunction() {
	$this->data[$this->alias]['datetime_field'] = DboSource::expression('NOW()');
	$this->save();
}

Initial URL

                                

Initial Description

                                

Initial Title
Saving CakePHP Model data with MySQL functions

Initial Tags
cakephp

Initial Language
PHP