Skip to content

Commit c145ba9

Browse files
committed
Fix deprecated call of setDirty()
1 parent ff684ab commit c145ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Behavior/UploadBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function beforeSave(Event $event, Entity $entity, ArrayObject $options)
9090
if (Hash::get((array)$entity->get($field), 'error') !== UPLOAD_ERR_OK) {
9191
if (Hash::get($settings, 'restoreValueOnFailure', true)) {
9292
$entity->set($field, $entity->getOriginal($field));
93-
$entity->dirty($field, false);
93+
$entity->setDirty($field, false);
9494
}
9595
continue;
9696
}

0 commit comments

Comments
 (0)