Skip to content

Commit

Permalink
Merge pull request #40 from Putr/patch-1
Browse files Browse the repository at this point in the history
Fix onCloned
  • Loading branch information
weotch authored Aug 28, 2020
2 parents 34e6dc5 + eb999fe commit 9b4f5bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Cloner.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ public function duplicate($model, $relation = null) {
$this->duplicateAttachments($model, $clone);
$clone->save();

$this->dispatchOnClonedEvent($clone, $model);

$this->cloneRelations($model, $clone);


$this->dispatchOnClonedEvent($clone, $model);

return $clone;
}

Expand Down

0 comments on commit 9b4f5bf

Please sign in to comment.