If the ID field can vary, consult $model->id_field. You do not have
to worry about default fileds, because their values will automatically
be in $data.
If $id is null then new record must be created. If $id is specified,
then record must be overwritten. Method must return $id of stored record.
This method may throw exceptions.
abstract public save ( $model, $id, $data ) |