Beispiel #1
0
	/**
	 * Filter the query by a related JProfesseursMatieres object
	 *
	 * @param     JProfesseursMatieres $jProfesseursMatieres  the related object to use as filter
	 * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
	 *
	 * @return    MatiereQuery The current query, for fluid interface
	 */
	public function filterByJProfesseursMatieres($jProfesseursMatieres, $comparison = null)
	{
		if ($jProfesseursMatieres instanceof JProfesseursMatieres) {
			return $this
				->addUsingAlias(MatierePeer::MATIERE, $jProfesseursMatieres->getIdMatiere(), $comparison);
		} elseif ($jProfesseursMatieres instanceof PropelCollection) {
			return $this
				->useJProfesseursMatieresQuery()
				->filterByPrimaryKeys($jProfesseursMatieres->getPrimaryKeys())
				->endUse();
		} else {
			throw new PropelException('filterByJProfesseursMatieres() only accepts arguments of type JProfesseursMatieres or PropelCollection');
		}
	}