/**
  * Filter the query by a related OrganizationProduct object
  *
  * @param   OrganizationProduct|PropelObjectCollection $organizationProduct  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 ProductQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByOrganizationProduct($organizationProduct, $comparison = null)
 {
     if ($organizationProduct instanceof OrganizationProduct) {
         return $this->addUsingAlias(ProductPeer::ID, $organizationProduct->getProductId(), $comparison);
     } elseif ($organizationProduct instanceof PropelObjectCollection) {
         return $this->useOrganizationProductQuery()->filterByPrimaryKeys($organizationProduct->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByOrganizationProduct() only accepts arguments of type OrganizationProduct or PropelCollection');
     }
 }