Solar_Sql_Model_Related_BelongsTo::preSave()
public
void
Solar_Sql_Model_Related_BelongsTo::preSave
( Solar_Sql_Model_Record $native
)
Pre-save behavior when saving foreign records through this relationship.
Parameters
(Solar_Sql_Model_Record)
$native
: The native record that is trying to save a foreign record through this relationship.
Returns
(void)
Description
Pre-save behavior when saving foreign records through this relationship.
In a "belongs-to", the foreign value is stored in the native column, whereas in "has", the native value is stored in the foreign column.