FOFModel::onBeforeSave

This method runs before the $data is saved to the $table. Return false to stop saving.