Skip to content

Commit

Permalink
Merge pull request #701 from jan-stanek/oprava-historizace-prihlasek
Browse files Browse the repository at this point in the history
oprava kopirovani kolekci pri historizaci prihlasek
  • Loading branch information
jan-stanek authored Feb 22, 2020
2 parents d2e2281 + 6e5c6d3 commit a0be952
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions app/Model/User/Application/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,14 @@ public function __construct()
$this->subevents = new ArrayCollection();
}

public function __clone()
{
if ($this->id) {
$this->roles = clone $this->roles;
$this->subevents = clone $this->subevents;
}
}

public function getId() : int
{
return $this->id;
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a0be952

Please sign in to comment.