Exemplo n.º 1
0
 /**
  * Filter the query by a related \Games object
  *
  * @param \Games|ObjectCollection $games the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildCompaniesQuery The current query, for fluid interface
  */
 public function filterByGamesRelatedByPublisherId($games, $comparison = null)
 {
     if ($games instanceof \Games) {
         return $this->addUsingAlias(CompaniesTableMap::COL_ID, $games->getPublisherId(), $comparison);
     } elseif ($games instanceof ObjectCollection) {
         return $this->useGamesRelatedByPublisherIdQuery()->filterByPrimaryKeys($games->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByGamesRelatedByPublisherId() only accepts arguments of type \\Games or Collection');
     }
 }