예제 #1
0
 /**
  * Filter the query by a related \Companies object
  *
  * @param \Companies|ObjectCollection $companies 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 ChildGamesQuery The current query, for fluid interface
  */
 public function filterByCompaniesRelatedByDeveloperId($companies, $comparison = null)
 {
     if ($companies instanceof \Companies) {
         return $this->addUsingAlias(GamesTableMap::COL_DEVELOPER_ID, $companies->getId(), $comparison);
     } elseif ($companies instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(GamesTableMap::COL_DEVELOPER_ID, $companies->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByCompaniesRelatedByDeveloperId() only accepts arguments of type \\Companies or Collection');
     }
 }