/** * Exclude object from result * * @param ChildRIssuesRtfplugin $rIssuesRtfplugin Object to remove from the list of results * * @return $this|ChildRIssuesRtfpluginQuery The current query, for fluid interface */ public function prune($rIssuesRtfplugin = null) { if ($rIssuesRtfplugin) { $this->addCond('pruneCond0', $this->getAliasedColName(RIssuesRtfpluginTableMap::COL__ISSUEID), $rIssuesRtfplugin->getIssueid(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(RIssuesRtfpluginTableMap::COL__PLUGINID), $rIssuesRtfplugin->getPluginid(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }
/** * Filter the query by a related \RIssuesRtfplugin object * * @param \RIssuesRtfplugin|ObjectCollection $rIssuesRtfplugin 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 filterByRIssuesRtfplugin($rIssuesRtfplugin, $comparison = null) { if ($rIssuesRtfplugin instanceof \RIssuesRtfplugin) { return $this->addUsingAlias(IssuesTableMap::COL_ID, $rIssuesRtfplugin->getIssueid(), $comparison); } elseif ($rIssuesRtfplugin instanceof ObjectCollection) { return $this->useRIssuesRtfpluginQuery()->filterByPrimaryKeys($rIssuesRtfplugin->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRIssuesRtfplugin() only accepts arguments of type \\RIssuesRtfplugin or Collection'); } }
/** * Remove rtfPlugin of this object * through the R_issues_rtfplugin cross reference table. * * @param ChildPlugins $rtfPlugin * @return ChildIssues The current object (for fluent API support) */ public function removeRtfPlugin(ChildPlugins $rtfPlugin) { if ($this->getRtfPlugins()->contains($rtfPlugin)) { $rIssuesRtfplugin = new ChildRIssuesRtfplugin(); $rIssuesRtfplugin->setRtfPlugin($rtfPlugin); if ($rtfPlugin->isRtfIssuesLoaded()) { //remove the back reference if available $rtfPlugin->getRtfIssues()->removeObject($this); } $rIssuesRtfplugin->setRtfIssue($this); $this->removeRIssuesRtfplugin(clone $rIssuesRtfplugin); $rIssuesRtfplugin->clear(); $this->collRtfPlugins->remove($this->collRtfPlugins->search($rtfPlugin)); if (null === $this->rtfPluginsScheduledForDeletion) { $this->rtfPluginsScheduledForDeletion = clone $this->collRtfPlugins; $this->rtfPluginsScheduledForDeletion->clear(); } $this->rtfPluginsScheduledForDeletion->push($rtfPlugin); } return $this; }