/** * Filter the query by a related \Issues object * * @param \Issues|ObjectCollection $issues The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @throws \Propel\Runtime\Exception\PropelException * * @return ChildContributionsQuery The current query, for fluid interface */ public function filterByIssues($issues, $comparison = null) { if ($issues instanceof \Issues) { return $this->addUsingAlias(ContributionsTableMap::COL__FORISSUE, $issues->getId(), $comparison); } elseif ($issues instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ContributionsTableMap::COL__FORISSUE, $issues->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByIssues() only accepts arguments of type \\Issues or Collection'); } }
/** * Exclude object from result * * @param ChildIssues $issues Object to remove from the list of results * * @return $this|ChildIssuesQuery The current query, for fluid interface */ public function prune($issues = null) { if ($issues) { $this->addUsingAlias(IssuesTableMap::COL_ID, $issues->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Declares an association between this object and a ChildIssues object. * * @param ChildIssues $v * @return $this|\RIssuesAllplugin The current object (for fluent API support) * @throws PropelException */ public function setAllIssue(ChildIssues $v = null) { if ($v === null) { $this->setIssueid(NULL); } else { $this->setIssueid($v->getId()); } $this->aAllIssue = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildIssues object, it will not be re-added. if ($v !== null) { $v->addRIssuesAllplugin($this); } return $this; }
/** * Declares an association between this object and a ChildIssues object. * * @param ChildIssues $v * @return $this|\Contributions The current object (for fluent API support) * @throws PropelException */ public function setIssues(ChildIssues $v = null) { if ($v === null) { $this->setForissue(NULL); } else { $this->setForissue($v->getId()); } $this->aIssues = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildIssues object, it will not be re-added. if ($v !== null) { $v->addContributions($this); } return $this; }