| @@ 1391-1407 (lines=17) @@ | ||
| 1388 | * @param ChildSubscription $l ChildSubscription |
|
| 1389 | * @return $this|\Jalle19\StatusManager\Database\Channel The current object (for fluent API support) |
|
| 1390 | */ |
|
| 1391 | public function addSubscription(ChildSubscription $l) |
|
| 1392 | { |
|
| 1393 | if ($this->collSubscriptions === null) { |
|
| 1394 | $this->initSubscriptions(); |
|
| 1395 | $this->collSubscriptionsPartial = true; |
|
| 1396 | } |
|
| 1397 | ||
| 1398 | if (!$this->collSubscriptions->contains($l)) { |
|
| 1399 | $this->doAddSubscription($l); |
|
| 1400 | ||
| 1401 | if ($this->subscriptionsScheduledForDeletion and $this->subscriptionsScheduledForDeletion->contains($l)) { |
|
| 1402 | $this->subscriptionsScheduledForDeletion->remove($this->subscriptionsScheduledForDeletion->search($l)); |
|
| 1403 | } |
|
| 1404 | } |
|
| 1405 | ||
| 1406 | return $this; |
|
| 1407 | } |
|
| 1408 | ||
| 1409 | /** |
|
| 1410 | * @param ChildSubscription $subscription The ChildSubscription object to add. |
|
| @@ 1701-1717 (lines=17) @@ | ||
| 1698 | * @param ChildSubscription $l ChildSubscription |
|
| 1699 | * @return $this|\Jalle19\StatusManager\Database\User The current object (for fluent API support) |
|
| 1700 | */ |
|
| 1701 | public function addSubscription(ChildSubscription $l) |
|
| 1702 | { |
|
| 1703 | if ($this->collSubscriptions === null) { |
|
| 1704 | $this->initSubscriptions(); |
|
| 1705 | $this->collSubscriptionsPartial = true; |
|
| 1706 | } |
|
| 1707 | ||
| 1708 | if (!$this->collSubscriptions->contains($l)) { |
|
| 1709 | $this->doAddSubscription($l); |
|
| 1710 | ||
| 1711 | if ($this->subscriptionsScheduledForDeletion and $this->subscriptionsScheduledForDeletion->contains($l)) { |
|
| 1712 | $this->subscriptionsScheduledForDeletion->remove($this->subscriptionsScheduledForDeletion->search($l)); |
|
| 1713 | } |
|
| 1714 | } |
|
| 1715 | ||
| 1716 | return $this; |
|
| 1717 | } |
|
| 1718 | ||
| 1719 | /** |
|
| 1720 | * @param ChildSubscription $subscription The ChildSubscription object to add. |
|
| @@ 1637-1653 (lines=17) @@ | ||
| 1634 | * @param ChildSubscription $l ChildSubscription |
|
| 1635 | * @return $this|\Jalle19\StatusManager\Database\Input The current object (for fluent API support) |
|
| 1636 | */ |
|
| 1637 | public function addSubscription(ChildSubscription $l) |
|
| 1638 | { |
|
| 1639 | if ($this->collSubscriptions === null) { |
|
| 1640 | $this->initSubscriptions(); |
|
| 1641 | $this->collSubscriptionsPartial = true; |
|
| 1642 | } |
|
| 1643 | ||
| 1644 | if (!$this->collSubscriptions->contains($l)) { |
|
| 1645 | $this->doAddSubscription($l); |
|
| 1646 | ||
| 1647 | if ($this->subscriptionsScheduledForDeletion and $this->subscriptionsScheduledForDeletion->contains($l)) { |
|
| 1648 | $this->subscriptionsScheduledForDeletion->remove($this->subscriptionsScheduledForDeletion->search($l)); |
|
| 1649 | } |
|
| 1650 | } |
|
| 1651 | ||
| 1652 | return $this; |
|
| 1653 | } |
|
| 1654 | ||
| 1655 | /** |
|
| 1656 | * @param ChildSubscription $subscription The ChildSubscription object to add. |
|
| @@ 2324-2340 (lines=17) @@ | ||
| 2321 | * @param ChildSubscription $l ChildSubscription |
|
| 2322 | * @return $this|\Jalle19\StatusManager\Database\Instance The current object (for fluent API support) |
|
| 2323 | */ |
|
| 2324 | public function addSubscription(ChildSubscription $l) |
|
| 2325 | { |
|
| 2326 | if ($this->collSubscriptions === null) { |
|
| 2327 | $this->initSubscriptions(); |
|
| 2328 | $this->collSubscriptionsPartial = true; |
|
| 2329 | } |
|
| 2330 | ||
| 2331 | if (!$this->collSubscriptions->contains($l)) { |
|
| 2332 | $this->doAddSubscription($l); |
|
| 2333 | ||
| 2334 | if ($this->subscriptionsScheduledForDeletion and $this->subscriptionsScheduledForDeletion->contains($l)) { |
|
| 2335 | $this->subscriptionsScheduledForDeletion->remove($this->subscriptionsScheduledForDeletion->search($l)); |
|
| 2336 | } |
|
| 2337 | } |
|
| 2338 | ||
| 2339 | return $this; |
|
| 2340 | } |
|
| 2341 | ||
| 2342 | /** |
|
| 2343 | * @param ChildSubscription $subscription The ChildSubscription object to add. |
|