Exemplo n.º 1
0
 /**
  * Filter the query by a related \Contributions object
  *
  * @param \Contributions|ObjectCollection $contributions 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 filterByContributions($contributions, $comparison = null)
 {
     if ($contributions instanceof \Contributions) {
         return $this->addUsingAlias(IssuesTableMap::COL_ID, $contributions->getForissue(), $comparison);
     } elseif ($contributions instanceof ObjectCollection) {
         return $this->useContributionsQuery()->filterByPrimaryKeys($contributions->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByContributions() only accepts arguments of type \\Contributions or Collection');
     }
 }