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