/**
  * Filter the query by a related \SoColissimo\Model\SocolissimoPrice object
  *
  * @param \SoColissimo\Model\SocolissimoPrice|ObjectCollection $socolissimoPrice  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildSocolissimoDeliveryModeQuery The current query, for fluid interface
  */
 public function filterBySocolissimoPrice($socolissimoPrice, $comparison = null)
 {
     if ($socolissimoPrice instanceof \SoColissimo\Model\SocolissimoPrice) {
         return $this->addUsingAlias(SocolissimoDeliveryModeTableMap::ID, $socolissimoPrice->getDeliveryModeId(), $comparison);
     } elseif ($socolissimoPrice instanceof ObjectCollection) {
         return $this->useSocolissimoPriceQuery()->filterByPrimaryKeys($socolissimoPrice->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterBySocolissimoPrice() only accepts arguments of type \\SoColissimo\\Model\\SocolissimoPrice or Collection');
     }
 }