/** * Filter the query by a related \RIssuesAllplugin object * * @param \RIssuesAllplugin|ObjectCollection $rIssuesAllplugin the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildIssuesQuery The current query, for fluid interface */ public function filterByRIssuesAllplugin($rIssuesAllplugin, $comparison = null) { if ($rIssuesAllplugin instanceof \RIssuesAllplugin) { return $this->addUsingAlias(IssuesTableMap::COL_ID, $rIssuesAllplugin->getIssueid(), $comparison); } elseif ($rIssuesAllplugin instanceof ObjectCollection) { return $this->useRIssuesAllpluginQuery()->filterByPrimaryKeys($rIssuesAllplugin->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRIssuesAllplugin() only accepts arguments of type \\RIssuesAllplugin or Collection'); } }
/** * Exclude object from result * * @param ChildRIssuesAllplugin $rIssuesAllplugin Object to remove from the list of results * * @return $this|ChildRIssuesAllpluginQuery The current query, for fluid interface */ public function prune($rIssuesAllplugin = null) { if ($rIssuesAllplugin) { $this->addCond('pruneCond0', $this->getAliasedColName(RIssuesAllpluginTableMap::COL__ISSUEID), $rIssuesAllplugin->getIssueid(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(RIssuesAllpluginTableMap::COL__PLUGINID), $rIssuesAllplugin->getPluginid(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }
/** * Remove allPlugin of this object * through the R_issues_allplugin cross reference table. * * @param ChildPlugins $allPlugin * @return ChildIssues The current object (for fluent API support) */ public function removeAllPlugin(ChildPlugins $allPlugin) { if ($this->getAllPlugins()->contains($allPlugin)) { $rIssuesAllplugin = new ChildRIssuesAllplugin(); $rIssuesAllplugin->setAllPlugin($allPlugin); if ($allPlugin->isAllIssuesLoaded()) { //remove the back reference if available $allPlugin->getAllIssues()->removeObject($this); } $rIssuesAllplugin->setAllIssue($this); $this->removeRIssuesAllplugin(clone $rIssuesAllplugin); $rIssuesAllplugin->clear(); $this->collAllPlugins->remove($this->collAllPlugins->search($allPlugin)); if (null === $this->allPluginsScheduledForDeletion) { $this->allPluginsScheduledForDeletion = clone $this->collAllPlugins; $this->allPluginsScheduledForDeletion->clear(); } $this->allPluginsScheduledForDeletion->push($allPlugin); } return $this; }