Solar_Sql_Model_Record::save()
Saves this record and all related records to the database, inserting or updating as needed.
Parameters
(array)
$data
: An associative array of data to merge with existing record data.
Returns
(bool) True on success, false on failure.
Description
Saves this record and all related records to the database, inserting or updating as needed.
Hook methods:
_preSave()
runs before all save operations._preInsert()
and_preUpdate()
run before the insert or update.As part of the model insert()/update() logic,
filter()
gets called, which itself has_preFilter()
and_postFilter()
hooks._postInsert()
and_postUpdate()
run after the insert or update._postSave()
runs after all save operations, but before related records are saved._preSaveRelated()
runs before saving related records.Each related record is saved, invoking the save() routine with all its hooks on each related record.
_postSaveRelated()
runs after all related records are saved.