This is an old revision of the document!
To insert a new record into the database, change an object's properties and then call the save() method. The method saves a record by executing an INSERT or UPDATE SQL statement as appropriate.
Returns false on unsuccessful INSERT, true if successsful INSERT.
Returns 0 on failed UPDATE, and 1 on UPDATE if data has changed, and -1 if no data was changed, so no UPDATE statement was executed.
$person = new person(); $person->name_first = 'Andi'; $person->name_last = 'Gutmans'; $person->save();