|
Re: How to save data in database? [message #4129 is a reply to message #4127] |
Tue, 08 April 2014 04:21 |
AJM
Messages: 2367 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
The $dbobject->insertRecord() method will automatically insert the contents of the input array into the database provided that all the validation passes. If the validation fails then $dbobject->errors will contain an array of error messages.
If there are no errors the code will perform a commit, then look for any active workflow cases and deal with them automatically.
If there are any errors it will perform a rollback and ignore any workflow processing
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|