/**
  * Exclude object from result
  *
  * @param   ChildRIssuesSingleplugin $rIssuesSingleplugin Object to remove from the list of results
  *
  * @return $this|ChildRIssuesSinglepluginQuery The current query, for fluid interface
  */
 public function prune($rIssuesSingleplugin = null)
 {
     if ($rIssuesSingleplugin) {
         $this->addCond('pruneCond0', $this->getAliasedColName(RIssuesSinglepluginTableMap::COL__ISSUEID), $rIssuesSingleplugin->getIssueid(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond1', $this->getAliasedColName(RIssuesSinglepluginTableMap::COL__PLUGINID), $rIssuesSingleplugin->getPluginid(), Criteria::NOT_EQUAL);
         $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
     }
     return $this;
 }
Пример #2
0
 /**
  * Filter the query by a related \RIssuesSingleplugin object
  *
  * @param \RIssuesSingleplugin|ObjectCollection $rIssuesSingleplugin 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 filterByRIssuesSingleplugin($rIssuesSingleplugin, $comparison = null)
 {
     if ($rIssuesSingleplugin instanceof \RIssuesSingleplugin) {
         return $this->addUsingAlias(IssuesTableMap::COL_ID, $rIssuesSingleplugin->getIssueid(), $comparison);
     } elseif ($rIssuesSingleplugin instanceof ObjectCollection) {
         return $this->useRIssuesSinglepluginQuery()->filterByPrimaryKeys($rIssuesSingleplugin->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByRIssuesSingleplugin() only accepts arguments of type \\RIssuesSingleplugin or Collection');
     }
 }
Пример #3
0
 /**
  * Remove singlePlugin of this object
  * through the R_issues_singleplugin cross reference table.
  *
  * @param ChildPlugins $singlePlugin
  * @return ChildIssues The current object (for fluent API support)
  */
 public function removeSinglePlugin(ChildPlugins $singlePlugin)
 {
     if ($this->getSinglePlugins()->contains($singlePlugin)) {
         $rIssuesSingleplugin = new ChildRIssuesSingleplugin();
         $rIssuesSingleplugin->setSinglePlugin($singlePlugin);
         if ($singlePlugin->isSingleIssuesLoaded()) {
             //remove the back reference if available
             $singlePlugin->getSingleIssues()->removeObject($this);
         }
         $rIssuesSingleplugin->setSingleIssue($this);
         $this->removeRIssuesSingleplugin(clone $rIssuesSingleplugin);
         $rIssuesSingleplugin->clear();
         $this->collSinglePlugins->remove($this->collSinglePlugins->search($singlePlugin));
         if (null === $this->singlePluginsScheduledForDeletion) {
             $this->singlePluginsScheduledForDeletion = clone $this->collSinglePlugins;
             $this->singlePluginsScheduledForDeletion->clear();
         }
         $this->singlePluginsScheduledForDeletion->push($singlePlugin);
     }
     return $this;
 }