Beispiel #1
0
	/**
	 * @param	Matiere $matiere The matiere object to add.
	 */
	protected function doAddMatiere($matiere)
	{
		$jGroupesMatieres = new JGroupesMatieres();
		$jGroupesMatieres->setMatiere($matiere);
		$this->addJGroupesMatieres($jGroupesMatieres);
	}
Beispiel #2
0
	/**
	 * Filter the query by a related JGroupesMatieres object
	 *
	 * @param     JGroupesMatieres $jGroupesMatieres  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 filterByJGroupesMatieres($jGroupesMatieres, $comparison = null)
	{
		if ($jGroupesMatieres instanceof JGroupesMatieres) {
			return $this
				->addUsingAlias(MatierePeer::MATIERE, $jGroupesMatieres->getIdMatiere(), $comparison);
		} elseif ($jGroupesMatieres instanceof PropelCollection) {
			return $this
				->useJGroupesMatieresQuery()
				->filterByPrimaryKeys($jGroupesMatieres->getPrimaryKeys())
				->endUse();
		} else {
			throw new PropelException('filterByJGroupesMatieres() only accepts arguments of type JGroupesMatieres or PropelCollection');
		}
	}
	/**
	 * Exclude object from result
	 *
	 * @param     JGroupesMatieres $jGroupesMatieres Object to remove from the list of results
	 *
	 * @return    JGroupesMatieresQuery The current query, for fluid interface
	 */
	public function prune($jGroupesMatieres = null)
	{
		if ($jGroupesMatieres) {
			$this->addCond('pruneCond0', $this->getAliasedColName(JGroupesMatieresPeer::ID_GROUPE), $jGroupesMatieres->getIdGroupe(), Criteria::NOT_EQUAL);
			$this->addCond('pruneCond1', $this->getAliasedColName(JGroupesMatieresPeer::ID_MATIERE), $jGroupesMatieres->getIdMatiere(), Criteria::NOT_EQUAL);
			$this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
		}

		return $this;
	}