| @@ 1421-1440 (lines=20) @@ | ||
| 1418 | * outgoing references as well as back-references (from other objects to this one. Results probably in a database |
|
| 1419 | * change of those foreign objects when you call `save` there). |
|
| 1420 | */ |
|
| 1421 | public function clear() |
|
| 1422 | { |
|
| 1423 | if (null !== $this->aInstance) { |
|
| 1424 | $this->aInstance->removeConnection($this); |
|
| 1425 | } |
|
| 1426 | if (null !== $this->aUser) { |
|
| 1427 | $this->aUser->removeConnection($this); |
|
| 1428 | } |
|
| 1429 | $this->id = null; |
|
| 1430 | $this->instance_name = null; |
|
| 1431 | $this->user_id = null; |
|
| 1432 | $this->peer = null; |
|
| 1433 | $this->started = null; |
|
| 1434 | $this->type = null; |
|
| 1435 | $this->alreadyInSave = false; |
|
| 1436 | $this->clearAllReferences(); |
|
| 1437 | $this->resetModified(); |
|
| 1438 | $this->setNew(true); |
|
| 1439 | $this->setDeleted(false); |
|
| 1440 | } |
|
| 1441 | ||
| 1442 | /** |
|
| 1443 | * Resets all references and back-references to other model objects or collections of model objects. |
|
| @@ 1764-1781 (lines=18) @@ | ||
| 1761 | * outgoing references as well as back-references (from other objects to this one. Results probably in a database |
|
| 1762 | * change of those foreign objects when you call `save` there). |
|
| 1763 | */ |
|
| 1764 | public function clear() |
|
| 1765 | { |
|
| 1766 | if (null !== $this->aInstance) { |
|
| 1767 | $this->aInstance->removeInput($this); |
|
| 1768 | } |
|
| 1769 | $this->uuid = null; |
|
| 1770 | $this->instance_name = null; |
|
| 1771 | $this->started = null; |
|
| 1772 | $this->input = null; |
|
| 1773 | $this->network = null; |
|
| 1774 | $this->mux = null; |
|
| 1775 | $this->weight = null; |
|
| 1776 | $this->alreadyInSave = false; |
|
| 1777 | $this->clearAllReferences(); |
|
| 1778 | $this->resetModified(); |
|
| 1779 | $this->setNew(true); |
|
| 1780 | $this->setDeleted(false); |
|
| 1781 | } |
|
| 1782 | ||
| 1783 | /** |
|
| 1784 | * Resets all references and back-references to other model objects or collections of model objects. |
|