/** * 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 OrganizationQuery 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(OrganizationPeer::ID, $organizationProduct->getOrganizationId(), $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'); } }
/** * 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'); } }