| @@ 1033-1051 (lines=19) @@ | ||
| 1030 | * @return $this|\mod_link\models\PageLinkProduct The current object (for fluent API support) |
|
| 1031 | * @throws PropelException |
|
| 1032 | */ |
|
| 1033 | public function setPageLink(ChildPageLink $v = null) |
|
| 1034 | { |
|
| 1035 | if ($v === null) { |
|
| 1036 | $this->setLinkId(NULL); |
|
| 1037 | } else { |
|
| 1038 | $this->setLinkId($v->getId()); |
|
| 1039 | } |
|
| 1040 | ||
| 1041 | $this->aPageLink = $v; |
|
| 1042 | ||
| 1043 | // Add binding for other direction of this n:n relationship. |
|
| 1044 | // If this object has already been added to the ChildPageLink object, it will not be re-added. |
|
| 1045 | if ($v !== null) { |
|
| 1046 | $v->addPageLinkProduct($this); |
|
| 1047 | } |
|
| 1048 | ||
| 1049 | ||
| 1050 | return $this; |
|
| 1051 | } |
|
| 1052 | ||
| 1053 | ||
| 1054 | /** |
|
| @@ 1033-1051 (lines=19) @@ | ||
| 1030 | * @return $this|\mod_link\models\PageLinkProducts The current object (for fluent API support) |
|
| 1031 | * @throws PropelException |
|
| 1032 | */ |
|
| 1033 | public function setPageLink(ChildPageLink $v = null) |
|
| 1034 | { |
|
| 1035 | if ($v === null) { |
|
| 1036 | $this->setLinkId(NULL); |
|
| 1037 | } else { |
|
| 1038 | $this->setLinkId($v->getId()); |
|
| 1039 | } |
|
| 1040 | ||
| 1041 | $this->aPageLink = $v; |
|
| 1042 | ||
| 1043 | // Add binding for other direction of this n:n relationship. |
|
| 1044 | // If this object has already been added to the ChildPageLink object, it will not be re-added. |
|
| 1045 | if ($v !== null) { |
|
| 1046 | $v->addPageLinkProducts($this); |
|
| 1047 | } |
|
| 1048 | ||
| 1049 | ||
| 1050 | return $this; |
|
| 1051 | } |
|
| 1052 | ||
| 1053 | ||
| 1054 | /** |
|