application/modules/mod_link/models/Base/PageLinkProduct.php 1 location
|
@@ 1082-1094 (lines=13) @@
|
| 1079 |
|
* outgoing references as well as back-references (from other objects to this one. Results probably in a database |
| 1080 |
|
* change of those foreign objects when you call `save` there). |
| 1081 |
|
*/ |
| 1082 |
|
public function clear() |
| 1083 |
|
{ |
| 1084 |
|
if (null !== $this->aPageLink) { |
| 1085 |
|
$this->aPageLink->removePageLinkProduct($this); |
| 1086 |
|
} |
| 1087 |
|
$this->link_id = null; |
| 1088 |
|
$this->product_id = null; |
| 1089 |
|
$this->alreadyInSave = false; |
| 1090 |
|
$this->clearAllReferences(); |
| 1091 |
|
$this->resetModified(); |
| 1092 |
|
$this->setNew(true); |
| 1093 |
|
$this->setDeleted(false); |
| 1094 |
|
} |
| 1095 |
|
|
| 1096 |
|
/** |
| 1097 |
|
* Resets all references and back-references to other model objects or collections of model objects. |
application/modules/mod_link/models/Base/PageLinkProducts.php 1 location
|
@@ 1082-1094 (lines=13) @@
|
| 1079 |
|
* outgoing references as well as back-references (from other objects to this one. Results probably in a database |
| 1080 |
|
* change of those foreign objects when you call `save` there). |
| 1081 |
|
*/ |
| 1082 |
|
public function clear() |
| 1083 |
|
{ |
| 1084 |
|
if (null !== $this->aPageLink) { |
| 1085 |
|
$this->aPageLink->removePageLinkProducts($this); |
| 1086 |
|
} |
| 1087 |
|
$this->link_id = null; |
| 1088 |
|
$this->product_id = null; |
| 1089 |
|
$this->alreadyInSave = false; |
| 1090 |
|
$this->clearAllReferences(); |
| 1091 |
|
$this->resetModified(); |
| 1092 |
|
$this->setNew(true); |
| 1093 |
|
$this->setDeleted(false); |
| 1094 |
|
} |
| 1095 |
|
|
| 1096 |
|
/** |
| 1097 |
|
* Resets all references and back-references to other model objects or collections of model objects. |
application/modules/xbanners/models/Base/BannersI18n.php 1 location
|
@@ 1160-1174 (lines=15) @@
|
| 1157 |
|
* outgoing references as well as back-references (from other objects to this one. Results probably in a database |
| 1158 |
|
* change of those foreign objects when you call `save` there). |
| 1159 |
|
*/ |
| 1160 |
|
public function clear() |
| 1161 |
|
{ |
| 1162 |
|
if (null !== $this->aBanners) { |
| 1163 |
|
$this->aBanners->removeBannersI18n($this); |
| 1164 |
|
} |
| 1165 |
|
$this->id = null; |
| 1166 |
|
$this->locale = null; |
| 1167 |
|
$this->name = null; |
| 1168 |
|
$this->alreadyInSave = false; |
| 1169 |
|
$this->clearAllReferences(); |
| 1170 |
|
$this->applyDefaultValues(); |
| 1171 |
|
$this->resetModified(); |
| 1172 |
|
$this->setNew(true); |
| 1173 |
|
$this->setDeleted(false); |
| 1174 |
|
} |
| 1175 |
|
|
| 1176 |
|
/** |
| 1177 |
|
* Resets all references and back-references to other model objects or collections of model objects. |