Perform deep clone when cloning a part.

Fixes issue #25.
This commit is contained in:
Jan Böhmer 2020-03-08 18:56:00 +01:00
parent ccdac1a94b
commit a3c626d0ab
8 changed files with 92 additions and 7 deletions

View file

@ -68,8 +68,10 @@ abstract class AbstractDBElement implements \JsonSerializable
public function __clone()
{
//Set ID to null, so that an new entry is created
$this->id = null;
if ($this->id) {
//Set ID to null, so that an new entry is created
$this->id = null;
}
}
/**