@@ 1849-1862 (lines=14) @@ | ||
1846 | * outgoing references as well as back-references (from other objects to this one. Results probably in a database |
|
1847 | * change of those foreign objects when you call `save` there). |
|
1848 | */ |
|
1849 | public function clear() |
|
1850 | { |
|
1851 | $this->id = null; |
|
1852 | $this->entity_id = null; |
|
1853 | $this->type = null; |
|
1854 | $this->parent_url = null; |
|
1855 | $this->url = null; |
|
1856 | $this->alreadyInSave = false; |
|
1857 | $this->clearAllReferences(); |
|
1858 | $this->applyDefaultValues(); |
|
1859 | $this->resetModified(); |
|
1860 | $this->setNew(true); |
|
1861 | $this->setDeleted(false); |
|
1862 | } |
|
1863 | ||
1864 | /** |
|
1865 | * Resets all references and back-references to other model objects or collections of model objects. |
@@ 1835-1848 (lines=14) @@ | ||
1832 | * outgoing references as well as back-references (from other objects to this one. Results probably in a database |
|
1833 | * change of those foreign objects when you call `save` there). |
|
1834 | */ |
|
1835 | public function clear() |
|
1836 | { |
|
1837 | $this->id = null; |
|
1838 | $this->place = null; |
|
1839 | $this->width = null; |
|
1840 | $this->height = null; |
|
1841 | $this->effects = null; |
|
1842 | $this->page_type = null; |
|
1843 | $this->alreadyInSave = false; |
|
1844 | $this->clearAllReferences(); |
|
1845 | $this->resetModified(); |
|
1846 | $this->setNew(true); |
|
1847 | $this->setDeleted(false); |
|
1848 | } |
|
1849 | ||
1850 | /** |
|
1851 | * Resets all references and back-references to other model objects or collections of model objects. |