/**
  * 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;
 }
Exemple #2
0
 /**
  * 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');
     }
 }