return;
} /** @var Customer $customer */
$customer =
$this->
getRepository()->
find((int) $id);
/** @var PaymentData $paymentData */
$paymentData =
$this->
getManager()->
getRepository(PaymentData::
class)->
findOneBy( ['customer' =>
$customer, 'paymentMean' =>
(int) $paymentId] );
if ($customer->
getChanged() !== null
) { // Check whether the customer has been modified in the meantime
try { $changed =
new DateTime($params['changed'
]);
} catch (Exception
$e) { // If we have a invalid date caused by imports
$changed =
$customer->
getChanged();
} if ($changed->
getTimestamp() < 0 &&
$customer->
getChanged()->
getTimestamp() < 0
) { $changed =
$customer->
getChanged();
}