| @@ 1105-1116 (lines=12) @@ | ||
| 1102 | $copyObj->setInstanceName($this->getInstanceName()); |
|
| 1103 | $copyObj->setName($this->getName()); |
|
| 1104 | ||
| 1105 | if ($deepCopy) { |
|
| 1106 | // important: temporarily setNew(false) because this affects the behavior of |
|
| 1107 | // the getter/setter methods for fkey referrer objects. |
|
| 1108 | $copyObj->setNew(false); |
|
| 1109 | ||
| 1110 | foreach ($this->getSubscriptions() as $relObj) { |
|
| 1111 | if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves |
|
| 1112 | $copyObj->addSubscription($relObj->copy($deepCopy)); |
|
| 1113 | } |
|
| 1114 | } |
|
| 1115 | ||
| 1116 | } // if ($deepCopy) |
|
| 1117 | ||
| 1118 | if ($makeNew) { |
|
| 1119 | $copyObj->setNew(true); |
|
| @@ 1352-1363 (lines=12) @@ | ||
| 1349 | $copyObj->setMux($this->getMux()); |
|
| 1350 | $copyObj->setWeight($this->getWeight()); |
|
| 1351 | ||
| 1352 | if ($deepCopy) { |
|
| 1353 | // important: temporarily setNew(false) because this affects the behavior of |
|
| 1354 | // the getter/setter methods for fkey referrer objects. |
|
| 1355 | $copyObj->setNew(false); |
|
| 1356 | ||
| 1357 | foreach ($this->getSubscriptions() as $relObj) { |
|
| 1358 | if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves |
|
| 1359 | $copyObj->addSubscription($relObj->copy($deepCopy)); |
|
| 1360 | } |
|
| 1361 | } |
|
| 1362 | ||
| 1363 | } // if ($deepCopy) |
|
| 1364 | ||
| 1365 | if ($makeNew) { |
|
| 1366 | $copyObj->setNew(true); |
|