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