| @@ 1482-1496 (lines=15) @@ | ||
| 1479 | * @param ChildConnection $connection The ChildConnection object to remove. |
|
| 1480 | * @return $this|ChildUser The current object (for fluent API support) |
|
| 1481 | */ |
|
| 1482 | public function removeConnection(ChildConnection $connection) |
|
| 1483 | { |
|
| 1484 | if ($this->getConnections()->contains($connection)) { |
|
| 1485 | $pos = $this->collConnections->search($connection); |
|
| 1486 | $this->collConnections->remove($pos); |
|
| 1487 | if (null === $this->connectionsScheduledForDeletion) { |
|
| 1488 | $this->connectionsScheduledForDeletion = clone $this->collConnections; |
|
| 1489 | $this->connectionsScheduledForDeletion->clear(); |
|
| 1490 | } |
|
| 1491 | $this->connectionsScheduledForDeletion[]= $connection; |
|
| 1492 | $connection->setUser(null); |
|
| 1493 | } |
|
| 1494 | ||
| 1495 | return $this; |
|
| 1496 | } |
|
| 1497 | ||
| 1498 | ||
| 1499 | /** |
|
| @@ 1732-1746 (lines=15) @@ | ||
| 1729 | * @param ChildSubscription $subscription The ChildSubscription object to remove. |
|
| 1730 | * @return $this|ChildUser The current object (for fluent API support) |
|
| 1731 | */ |
|
| 1732 | public function removeSubscription(ChildSubscription $subscription) |
|
| 1733 | { |
|
| 1734 | if ($this->getSubscriptions()->contains($subscription)) { |
|
| 1735 | $pos = $this->collSubscriptions->search($subscription); |
|
| 1736 | $this->collSubscriptions->remove($pos); |
|
| 1737 | if (null === $this->subscriptionsScheduledForDeletion) { |
|
| 1738 | $this->subscriptionsScheduledForDeletion = clone $this->collSubscriptions; |
|
| 1739 | $this->subscriptionsScheduledForDeletion->clear(); |
|
| 1740 | } |
|
| 1741 | $this->subscriptionsScheduledForDeletion[]= $subscription; |
|
| 1742 | $subscription->setUser(null); |
|
| 1743 | } |
|
| 1744 | ||
| 1745 | return $this; |
|
| 1746 | } |
|
| 1747 | ||
| 1748 | ||
| 1749 | /** |
|
| @@ 1668-1682 (lines=15) @@ | ||
| 1665 | * @param ChildSubscription $subscription The ChildSubscription object to remove. |
|
| 1666 | * @return $this|ChildInput The current object (for fluent API support) |
|
| 1667 | */ |
|
| 1668 | public function removeSubscription(ChildSubscription $subscription) |
|
| 1669 | { |
|
| 1670 | if ($this->getSubscriptions()->contains($subscription)) { |
|
| 1671 | $pos = $this->collSubscriptions->search($subscription); |
|
| 1672 | $this->collSubscriptions->remove($pos); |
|
| 1673 | if (null === $this->subscriptionsScheduledForDeletion) { |
|
| 1674 | $this->subscriptionsScheduledForDeletion = clone $this->collSubscriptions; |
|
| 1675 | $this->subscriptionsScheduledForDeletion->clear(); |
|
| 1676 | } |
|
| 1677 | $this->subscriptionsScheduledForDeletion[]= $subscription; |
|
| 1678 | $subscription->setInput(null); |
|
| 1679 | } |
|
| 1680 | ||
| 1681 | return $this; |
|
| 1682 | } |
|
| 1683 | ||
| 1684 | ||
| 1685 | /** |
|
| @@ 1655-1669 (lines=15) @@ | ||
| 1652 | * @param ChildConnection $connection The ChildConnection object to remove. |
|
| 1653 | * @return $this|ChildInstance The current object (for fluent API support) |
|
| 1654 | */ |
|
| 1655 | public function removeConnection(ChildConnection $connection) |
|
| 1656 | { |
|
| 1657 | if ($this->getConnections()->contains($connection)) { |
|
| 1658 | $pos = $this->collConnections->search($connection); |
|
| 1659 | $this->collConnections->remove($pos); |
|
| 1660 | if (null === $this->connectionsScheduledForDeletion) { |
|
| 1661 | $this->connectionsScheduledForDeletion = clone $this->collConnections; |
|
| 1662 | $this->connectionsScheduledForDeletion->clear(); |
|
| 1663 | } |
|
| 1664 | $this->connectionsScheduledForDeletion[]= clone $connection; |
|
| 1665 | $connection->setInstance(null); |
|
| 1666 | } |
|
| 1667 | ||
| 1668 | return $this; |
|
| 1669 | } |
|
| 1670 | ||
| 1671 | ||
| 1672 | /** |
|
| @@ 1905-1919 (lines=15) @@ | ||
| 1902 | * @param ChildInput $input The ChildInput object to remove. |
|
| 1903 | * @return $this|ChildInstance The current object (for fluent API support) |
|
| 1904 | */ |
|
| 1905 | public function removeInput(ChildInput $input) |
|
| 1906 | { |
|
| 1907 | if ($this->getInputs()->contains($input)) { |
|
| 1908 | $pos = $this->collInputs->search($input); |
|
| 1909 | $this->collInputs->remove($pos); |
|
| 1910 | if (null === $this->inputsScheduledForDeletion) { |
|
| 1911 | $this->inputsScheduledForDeletion = clone $this->collInputs; |
|
| 1912 | $this->inputsScheduledForDeletion->clear(); |
|
| 1913 | } |
|
| 1914 | $this->inputsScheduledForDeletion[]= clone $input; |
|
| 1915 | $input->setInstance(null); |
|
| 1916 | } |
|
| 1917 | ||
| 1918 | return $this; |
|
| 1919 | } |
|
| 1920 | ||
| 1921 | /** |
|
| 1922 | * Clears out the collChannels collection |
|