We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c941655 commit 8781f56Copy full SHA for 8781f56
src/actions/UpdateAction.php
@@ -92,7 +92,7 @@ public function run($id):Item
92
if ($this->checkAccess) {
93
call_user_func($this->checkAccess, $this->id, $model);
94
}
95
- $originalModel = $model;
+ $originalModel = clone $model;
96
RelationshipManager::validateRelationships($model, $this->getResourceRelationships(), $this->allowedRelations);
97
if (empty($this->getResourceAttributes()) && $this->hasResourceRelationships()) {
98
$transact = $model::getDb()->beginTransaction();
0 commit comments