/** * Remove narrationPlugin of this object * through the R_issues_narrationplugin cross reference table. * * @param ChildPlugins $narrationPlugin * @return ChildIssues The current object (for fluent API support) */ public function removeNarrationPlugin(ChildPlugins $narrationPlugin) { if ($this->getNarrationPlugins()->contains($narrationPlugin)) { $rIssuesNarrationplugin = new ChildRIssuesNarrationplugin(); $rIssuesNarrationplugin->setNarrationPlugin($narrationPlugin); if ($narrationPlugin->isNarrationIssuesLoaded()) { //remove the back reference if available $narrationPlugin->getNarrationIssues()->removeObject($this); } $rIssuesNarrationplugin->setNarrationIssue($this); $this->removeRIssuesNarrationplugin(clone $rIssuesNarrationplugin); $rIssuesNarrationplugin->clear(); $this->collNarrationPlugins->remove($this->collNarrationPlugins->search($narrationPlugin)); if (null === $this->narrationPluginsScheduledForDeletion) { $this->narrationPluginsScheduledForDeletion = clone $this->collNarrationPlugins; $this->narrationPluginsScheduledForDeletion->clear(); } $this->narrationPluginsScheduledForDeletion->push($narrationPlugin); } return $this; }
/** * Filter the query by a related \RIssuesNarrationplugin object * * @param \RIssuesNarrationplugin|ObjectCollection $rIssuesNarrationplugin 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 filterByRIssuesNarrationplugin($rIssuesNarrationplugin, $comparison = null) { if ($rIssuesNarrationplugin instanceof \RIssuesNarrationplugin) { return $this->addUsingAlias(IssuesTableMap::COL_ID, $rIssuesNarrationplugin->getIssueid(), $comparison); } elseif ($rIssuesNarrationplugin instanceof ObjectCollection) { return $this->useRIssuesNarrationpluginQuery()->filterByPrimaryKeys($rIssuesNarrationplugin->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRIssuesNarrationplugin() only accepts arguments of type \\RIssuesNarrationplugin or Collection'); } }
/** * Exclude object from result * * @param ChildRIssuesNarrationplugin $rIssuesNarrationplugin Object to remove from the list of results * * @return $this|ChildRIssuesNarrationpluginQuery The current query, for fluid interface */ public function prune($rIssuesNarrationplugin = null) { if ($rIssuesNarrationplugin) { $this->addCond('pruneCond0', $this->getAliasedColName(RIssuesNarrationpluginTableMap::COL__ISSUEID), $rIssuesNarrationplugin->getIssueid(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(RIssuesNarrationpluginTableMap::COL__PLUGINID), $rIssuesNarrationplugin->getPluginid(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }