| @@ 1493-1506 (lines=14) @@ | ||
| 1490 | * outgoing references as well as back-references (from other objects to this one. Results probably in a database |
|
| 1491 | * change of those foreign objects when you call `save` there). |
|
| 1492 | */ |
|
| 1493 | public function clear() |
|
| 1494 | { |
|
| 1495 | if (null !== $this->aInstance) { |
|
| 1496 | $this->aInstance->removeChannel($this); |
|
| 1497 | } |
|
| 1498 | $this->id = null; |
|
| 1499 | $this->instance_name = null; |
|
| 1500 | $this->name = null; |
|
| 1501 | $this->alreadyInSave = false; |
|
| 1502 | $this->clearAllReferences(); |
|
| 1503 | $this->resetModified(); |
|
| 1504 | $this->setNew(true); |
|
| 1505 | $this->setDeleted(false); |
|
| 1506 | } |
|
| 1507 | ||
| 1508 | /** |
|
| 1509 | * Resets all references and back-references to other model objects or collections of model objects. |
|
| @@ 1803-1816 (lines=14) @@ | ||
| 1800 | * outgoing references as well as back-references (from other objects to this one. Results probably in a database |
|
| 1801 | * change of those foreign objects when you call `save` there). |
|
| 1802 | */ |
|
| 1803 | public function clear() |
|
| 1804 | { |
|
| 1805 | if (null !== $this->aInstance) { |
|
| 1806 | $this->aInstance->removeUser($this); |
|
| 1807 | } |
|
| 1808 | $this->id = null; |
|
| 1809 | $this->instance_name = null; |
|
| 1810 | $this->name = null; |
|
| 1811 | $this->alreadyInSave = false; |
|
| 1812 | $this->clearAllReferences(); |
|
| 1813 | $this->resetModified(); |
|
| 1814 | $this->setNew(true); |
|
| 1815 | $this->setDeleted(false); |
|
| 1816 | } |
|
| 1817 | ||
| 1818 | /** |
|
| 1819 | * Resets all references and back-references to other model objects or collections of model objects. |
|