/**
	 * Exclude object from result
	 *
	 * @param     JNotificationResponsableEleve $jNotificationResponsableEleve Object to remove from the list of results
	 *
	 * @return    JNotificationResponsableEleveQuery The current query, for fluid interface
	 */
	public function prune($jNotificationResponsableEleve = null)
	{
		if ($jNotificationResponsableEleve) {
			$this->addCond('pruneCond0', $this->getAliasedColName(JNotificationResponsableElevePeer::A_NOTIFICATION_ID), $jNotificationResponsableEleve->getANotificationId(), Criteria::NOT_EQUAL);
			$this->addCond('pruneCond1', $this->getAliasedColName(JNotificationResponsableElevePeer::PERS_ID), $jNotificationResponsableEleve->getResponsableEleveId(), Criteria::NOT_EQUAL);
			$this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
		}

		return $this;
	}
Example #2
0
	/**
	 * @param	AbsenceEleveNotification $absenceEleveNotification The absenceEleveNotification object to add.
	 */
	protected function doAddAbsenceEleveNotification($absenceEleveNotification)
	{
		$jNotificationResponsableEleve = new JNotificationResponsableEleve();
		$jNotificationResponsableEleve->setAbsenceEleveNotification($absenceEleveNotification);
		$this->addJNotificationResponsableEleve($jNotificationResponsableEleve);
	}
	/**
	 * Filter the query by a related JNotificationResponsableEleve object
	 *
	 * @param     JNotificationResponsableEleve $jNotificationResponsableEleve  the related object to use as filter
	 * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
	 *
	 * @return    AbsenceEleveNotificationQuery The current query, for fluid interface
	 */
	public function filterByJNotificationResponsableEleve($jNotificationResponsableEleve, $comparison = null)
	{
		if ($jNotificationResponsableEleve instanceof JNotificationResponsableEleve) {
			return $this
				->addUsingAlias(AbsenceEleveNotificationPeer::ID, $jNotificationResponsableEleve->getANotificationId(), $comparison);
		} elseif ($jNotificationResponsableEleve instanceof PropelCollection) {
			return $this
				->useJNotificationResponsableEleveQuery()
				->filterByPrimaryKeys($jNotificationResponsableEleve->getPrimaryKeys())
				->endUse();
		} else {
			throw new PropelException('filterByJNotificationResponsableEleve() only accepts arguments of type JNotificationResponsableEleve or PropelCollection');
		}
	}
	/**
	 * @param	ResponsableEleve $responsableEleve The responsableEleve object to add.
	 */
	protected function doAddResponsableEleve($responsableEleve)
	{
		$jNotificationResponsableEleve = new JNotificationResponsableEleve();
		$jNotificationResponsableEleve->setResponsableEleve($responsableEleve);
		$this->addJNotificationResponsableEleve($jNotificationResponsableEleve);
	}