function PaymentMethodEntityController::save in Payment 7
Overridden to care exportables that are overridden.
Overrides EntityAPIControllerExportable::save
File
- ./
payment.classes.inc, line 693 - The API and related functions for executing and managing payments.
Class
- PaymentMethodEntityController
- Entity API controller for payment_method entities.
Code
function save($entity, DatabaseTransaction $transaction = NULL) {
$entity->controller_class_name = $entity->controller->name;
$return = parent::save($entity, $transaction);
// Cast non-string scalars to their original types, because some backends
// store/return all variables as strings.
$entity->pmid = (int) $entity->pmid;
unset($entity->controller_class_name);
return $return;
}