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