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