/** * Filter the query by a related EdtEmplacementCours object * * @param EdtEmplacementCours $edtEmplacementCours the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return EdtSalleQuery The current query, for fluid interface */ public function filterByEdtEmplacementCours($edtEmplacementCours, $comparison = null) { if ($edtEmplacementCours instanceof EdtEmplacementCours) { return $this ->addUsingAlias(EdtSallePeer::ID_SALLE, $edtEmplacementCours->getIdSalle(), $comparison); } elseif ($edtEmplacementCours instanceof PropelCollection) { return $this ->useEdtEmplacementCoursQuery() ->filterByPrimaryKeys($edtEmplacementCours->getPrimaryKeys()) ->endUse(); } else { throw new PropelException('filterByEdtEmplacementCours() only accepts arguments of type EdtEmplacementCours or PropelCollection'); } }