/** * Filter the query by a related \App\Propel\Config object * * @param \App\Propel\Config|ObjectCollection $config the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildConfigCategoryQuery The current query, for fluid interface */ public function filterByConfig($config, $comparison = null) { if ($config instanceof \App\Propel\Config) { return $this->addUsingAlias(ConfigCategoryTableMap::COL_CONFIG_CATEGORY_ID, $config->getConfigCategoryId(), $comparison); } elseif ($config instanceof ObjectCollection) { return $this->useConfigQuery()->filterByPrimaryKeys($config->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByConfig() only accepts arguments of type \\App\\Propel\\Config or Collection'); } }