@@ 1581-1595 (lines=15) @@ | ||
1578 | * @param ChildBannerImage $bannerImage The ChildBannerImage object to remove. |
|
1579 | * @return $this|ChildBanners The current object (for fluent API support) |
|
1580 | */ |
|
1581 | public function removeBannerImage(ChildBannerImage $bannerImage) |
|
1582 | { |
|
1583 | if ($this->getBannerImages()->contains($bannerImage)) { |
|
1584 | $pos = $this->collBannerImages->search($bannerImage); |
|
1585 | $this->collBannerImages->remove($pos); |
|
1586 | if (null === $this->bannerImagesScheduledForDeletion) { |
|
1587 | $this->bannerImagesScheduledForDeletion = clone $this->collBannerImages; |
|
1588 | $this->bannerImagesScheduledForDeletion->clear(); |
|
1589 | } |
|
1590 | $this->bannerImagesScheduledForDeletion[]= clone $bannerImage; |
|
1591 | $bannerImage->setBanners(null); |
|
1592 | } |
|
1593 | ||
1594 | return $this; |
|
1595 | } |
|
1596 | ||
1597 | /** |
|
1598 | * Clears out the collBannersI18ns collection |
|
@@ 1813-1827 (lines=15) @@ | ||
1810 | * @param ChildBannersI18n $bannersI18n The ChildBannersI18n object to remove. |
|
1811 | * @return $this|ChildBanners The current object (for fluent API support) |
|
1812 | */ |
|
1813 | public function removeBannersI18n(ChildBannersI18n $bannersI18n) |
|
1814 | { |
|
1815 | if ($this->getBannersI18ns()->contains($bannersI18n)) { |
|
1816 | $pos = $this->collBannersI18ns->search($bannersI18n); |
|
1817 | $this->collBannersI18ns->remove($pos); |
|
1818 | if (null === $this->bannersI18nsScheduledForDeletion) { |
|
1819 | $this->bannersI18nsScheduledForDeletion = clone $this->collBannersI18ns; |
|
1820 | $this->bannersI18nsScheduledForDeletion->clear(); |
|
1821 | } |
|
1822 | $this->bannersI18nsScheduledForDeletion[]= clone $bannersI18n; |
|
1823 | $bannersI18n->setBanners(null); |
|
1824 | } |
|
1825 | ||
1826 | return $this; |
|
1827 | } |
|
1828 | ||
1829 | /** |
|
1830 | * Clears the current object, sets all attributes to their default values and removes |