Skip to content

Commit

Permalink
saveOptions contains duplicated and originalId
Browse files Browse the repository at this point in the history
  • Loading branch information
OneHatRepo committed Aug 22, 2024
1 parent 16e189b commit f5f7877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Behavior/DuplicatableBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function duplicate(int|string $id): EntityInterface|false
{
return $this->_table->save(
$this->duplicateEntity($id),
$this->getConfig('saveOptions') + ['associated' => $this->getConfig('contain')]
$this->getConfig('saveOptions') + ['associated' => $this->getConfig('contain'), 'duplicated' => true, 'originalId' => $id]
);
}

Expand Down

0 comments on commit f5f7877

Please sign in to comment.