/** * Filter the query by a related AidConfiguration object * * @param AidConfiguration|PropelCollection $aidConfiguration The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return AidDetailsQuery The current query, for fluid interface */ public function filterByAidConfiguration($aidConfiguration, $comparison = null) { if ($aidConfiguration instanceof AidConfiguration) { return $this ->addUsingAlias(AidDetailsPeer::INDICE_AID, $aidConfiguration->getIndiceAid(), $comparison); } elseif ($aidConfiguration instanceof PropelCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(AidDetailsPeer::INDICE_AID, $aidConfiguration->toKeyValue('PrimaryKey', 'IndiceAid'), $comparison); } else { throw new PropelException('filterByAidConfiguration() only accepts arguments of type AidConfiguration or PropelCollection'); } }