Example #1
0
 /**
  * Filter the query by a related \Issues object
  *
  * @param \Issues|ObjectCollection $issues the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildBooksQuery The current query, for fluid interface
  */
 public function filterByIssues($issues, $comparison = null)
 {
     if ($issues instanceof \Issues) {
         return $this->addUsingAlias(BooksTableMap::COL_ID, $issues->getForbook(), $comparison);
     } elseif ($issues instanceof ObjectCollection) {
         return $this->useIssuesQuery()->filterByPrimaryKeys($issues->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByIssues() only accepts arguments of type \\Issues or Collection');
     }
 }