/**
  * @param  ChildFittingRuleRow $fittingRuleRow The ChildFittingRuleRow object to remove.
  * @return $this|ChildFittingRuleEntity The current object (for fluent API support)
  */
 public function removeFittingRuleRow(ChildFittingRuleRow $fittingRuleRow)
 {
     if ($this->getFittingRuleRows()->contains($fittingRuleRow)) {
         $pos = $this->collFittingRuleRows->search($fittingRuleRow);
         $this->collFittingRuleRows->remove($pos);
         if (null === $this->fittingRuleRowsScheduledForDeletion) {
             $this->fittingRuleRowsScheduledForDeletion = clone $this->collFittingRuleRows;
             $this->fittingRuleRowsScheduledForDeletion->clear();
         }
         $this->fittingRuleRowsScheduledForDeletion[] = clone $fittingRuleRow;
         $fittingRuleRow->setFittingRuleEntity(null);
     }
     return $this;
 }
 /**
  * @param  ChildFittingRuleRow $fittingRuleRowRelatedByComparison The ChildFittingRuleRow object to remove.
  * @return $this|ChildComparison The current object (for fluent API support)
  */
 public function removeFittingRuleRowRelatedByComparison(ChildFittingRuleRow $fittingRuleRowRelatedByComparison)
 {
     if ($this->getFittingRuleRowsRelatedByComparison()->contains($fittingRuleRowRelatedByComparison)) {
         $pos = $this->collFittingRuleRowsRelatedByComparison->search($fittingRuleRowRelatedByComparison);
         $this->collFittingRuleRowsRelatedByComparison->remove($pos);
         if (null === $this->fittingRuleRowsRelatedByComparisonScheduledForDeletion) {
             $this->fittingRuleRowsRelatedByComparisonScheduledForDeletion = clone $this->collFittingRuleRowsRelatedByComparison;
             $this->fittingRuleRowsRelatedByComparisonScheduledForDeletion->clear();
         }
         $this->fittingRuleRowsRelatedByComparisonScheduledForDeletion[] = clone $fittingRuleRowRelatedByComparison;
         $fittingRuleRowRelatedByComparison->setcomparisonObj(null);
     }
     return $this;
 }