/** * Remove xmlPlugin of this object * through the R_issues_xmlplugin cross reference table. * * @param ChildPlugins $xmlPlugin * @return ChildIssues The current object (for fluent API support) */ public function removeXmlPlugin(ChildPlugins $xmlPlugin) { if ($this->getXmlPlugins()->contains($xmlPlugin)) { $rIssuesXmlplugin = new ChildRIssuesXmlplugin(); $rIssuesXmlplugin->setXmlPlugin($xmlPlugin); if ($xmlPlugin->isXmlIssuesLoaded()) { //remove the back reference if available $xmlPlugin->getXmlIssues()->removeObject($this); } $rIssuesXmlplugin->setXmlIssue($this); $this->removeRIssuesXmlplugin(clone $rIssuesXmlplugin); $rIssuesXmlplugin->clear(); $this->collXmlPlugins->remove($this->collXmlPlugins->search($xmlPlugin)); if (null === $this->xmlPluginsScheduledForDeletion) { $this->xmlPluginsScheduledForDeletion = clone $this->collXmlPlugins; $this->xmlPluginsScheduledForDeletion->clear(); } $this->xmlPluginsScheduledForDeletion->push($xmlPlugin); } return $this; }
/** * Filter the query by a related \RIssuesXmlplugin object * * @param \RIssuesXmlplugin|ObjectCollection $rIssuesXmlplugin 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 filterByRIssuesXmlplugin($rIssuesXmlplugin, $comparison = null) { if ($rIssuesXmlplugin instanceof \RIssuesXmlplugin) { return $this->addUsingAlias(IssuesTableMap::COL_ID, $rIssuesXmlplugin->getIssueid(), $comparison); } elseif ($rIssuesXmlplugin instanceof ObjectCollection) { return $this->useRIssuesXmlpluginQuery()->filterByPrimaryKeys($rIssuesXmlplugin->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRIssuesXmlplugin() only accepts arguments of type \\RIssuesXmlplugin or Collection'); } }
/** * Exclude object from result * * @param ChildRIssuesXmlplugin $rIssuesXmlplugin Object to remove from the list of results * * @return $this|ChildRIssuesXmlpluginQuery The current query, for fluid interface */ public function prune($rIssuesXmlplugin = null) { if ($rIssuesXmlplugin) { $this->addCond('pruneCond0', $this->getAliasedColName(RIssuesXmlpluginTableMap::COL__ISSUEID), $rIssuesXmlplugin->getIssueid(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(RIssuesXmlpluginTableMap::COL__PLUGINID), $rIssuesXmlplugin->getPluginid(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }