you dont need paymentId later, do you? so why not make it shorter:

```php
<?php
$updatedModel = Payment::get($model->getId());
$model->fromArray($payment->toArray());

//or

$model->fromArray(
    Payment::get($model->getId())
);

```