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