mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 10:24:31 +02:00
parent
c0b4172f22
commit
a3af55d4e2
2 changed files with 20 additions and 0 deletions
|
@ -165,6 +165,13 @@ class Part extends AttachmentContainingDBElement
|
|||
foreach ($orderdetails as $orderdetail) {
|
||||
$this->addOrderdetail(clone $orderdetail);
|
||||
}
|
||||
|
||||
//Deep clone parameters
|
||||
$parameters = $this->parameters;
|
||||
$this->parameters = new ArrayCollection();
|
||||
foreach ($parameters as $parameter) {
|
||||
$this->addParameter(clone $parameter);
|
||||
}
|
||||
}
|
||||
parent::__clone();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue