We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c941655 + 8781f56 commit a9bf14fCopy full SHA for a9bf14f
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