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