|
@@ 1528-1542 (lines=15) @@
|
| 1525 |
|
* @param SCategory $sCategory The SCategory object to remove. |
| 1526 |
|
* @return $this|ChildRoute The current object (for fluent API support) |
| 1527 |
|
*/ |
| 1528 |
|
public function removeSCategory(SCategory $sCategory) |
| 1529 |
|
{ |
| 1530 |
|
if ($this->getSCategories()->contains($sCategory)) { |
| 1531 |
|
$pos = $this->collSCategories->search($sCategory); |
| 1532 |
|
$this->collSCategories->remove($pos); |
| 1533 |
|
if (null === $this->sCategoriesScheduledForDeletion) { |
| 1534 |
|
$this->sCategoriesScheduledForDeletion = clone $this->collSCategories; |
| 1535 |
|
$this->sCategoriesScheduledForDeletion->clear(); |
| 1536 |
|
} |
| 1537 |
|
$this->sCategoriesScheduledForDeletion[]= $sCategory; |
| 1538 |
|
$sCategory->setRoute(null); |
| 1539 |
|
} |
| 1540 |
|
|
| 1541 |
|
return $this; |
| 1542 |
|
} |
| 1543 |
|
|
| 1544 |
|
|
| 1545 |
|
/** |
|
@@ 1778-1792 (lines=15) @@
|
| 1775 |
|
* @param SProducts $sProducts The SProducts object to remove. |
| 1776 |
|
* @return $this|ChildRoute The current object (for fluent API support) |
| 1777 |
|
*/ |
| 1778 |
|
public function removeSProducts(SProducts $sProducts) |
| 1779 |
|
{ |
| 1780 |
|
if ($this->getSProductss()->contains($sProducts)) { |
| 1781 |
|
$pos = $this->collSProductss->search($sProducts); |
| 1782 |
|
$this->collSProductss->remove($pos); |
| 1783 |
|
if (null === $this->sProductssScheduledForDeletion) { |
| 1784 |
|
$this->sProductssScheduledForDeletion = clone $this->collSProductss; |
| 1785 |
|
$this->sProductssScheduledForDeletion->clear(); |
| 1786 |
|
} |
| 1787 |
|
$this->sProductssScheduledForDeletion[]= $sProducts; |
| 1788 |
|
$sProducts->setRoute(null); |
| 1789 |
|
} |
| 1790 |
|
|
| 1791 |
|
return $this; |
| 1792 |
|
} |
| 1793 |
|
|
| 1794 |
|
|
| 1795 |
|
/** |