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