/** * Remove issues of this object * through the R_rights_forissue cross reference table. * * @param ChildIssues $issues * @return ChildRights The current object (for fluent API support) */ public function removeIssues(ChildIssues $issues) { if ($this->getIssuess()->contains($issues)) { $rRightsForissue = new ChildRRightsForissue(); $rRightsForissue->setIssues($issues); if ($issues->isRightssLoaded()) { //remove the back reference if available $issues->getRightss()->removeObject($this); } $rRightsForissue->setRights($this); $this->removeRRightsForissue(clone $rRightsForissue); $rRightsForissue->clear(); $this->collIssuess->remove($this->collIssuess->search($issues)); if (null === $this->issuessScheduledForDeletion) { $this->issuessScheduledForDeletion = clone $this->collIssuess; $this->issuessScheduledForDeletion->clear(); } $this->issuessScheduledForDeletion->push($issues); } return $this; }
/** * Filter the query by a related \RRightsForissue object * * @param \RRightsForissue|ObjectCollection $rRightsForissue 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 filterByRRightsForissue($rRightsForissue, $comparison = null) { if ($rRightsForissue instanceof \RRightsForissue) { return $this->addUsingAlias(IssuesTableMap::COL_ID, $rRightsForissue->getIssueid(), $comparison); } elseif ($rRightsForissue instanceof ObjectCollection) { return $this->useRRightsForissueQuery()->filterByPrimaryKeys($rRightsForissue->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRRightsForissue() only accepts arguments of type \\RRightsForissue or Collection'); } }
/** * Exclude object from result * * @param ChildRRightsForissue $rRightsForissue Object to remove from the list of results * * @return $this|ChildRRightsForissueQuery The current query, for fluid interface */ public function prune($rRightsForissue = null) { if ($rRightsForissue) { $this->addCond('pruneCond0', $this->getAliasedColName(RRightsForissueTableMap::COL__RIGHTID), $rRightsForissue->getRightid(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(RRightsForissueTableMap::COL__ISSUEID), $rRightsForissue->getIssueid(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }