コード例 #1
0
	/**
	 * Exclude object from result
	 *
	 * @param     ResponsableInformation $responsableInformation Object to remove from the list of results
	 *
	 * @return    ResponsableInformationQuery The current query, for fluid interface
	 */
	public function prune($responsableInformation = null)
	{
		if ($responsableInformation) {
			$this->addCond('pruneCond0', $this->getAliasedColName(ResponsableInformationPeer::ELE_ID), $responsableInformation->getEleId(), Criteria::NOT_EQUAL);
			$this->addCond('pruneCond1', $this->getAliasedColName(ResponsableInformationPeer::RESP_LEGAL), $responsableInformation->getNiveauResponsabilite(), Criteria::NOT_EQUAL);
			$this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
		}

		return $this;
	}
コード例 #2
0
ファイル: BaseEleveQuery.php プロジェクト: rhertzog/lcs
	/**
	 * Filter the query by a related ResponsableInformation object
	 *
	 * @param     ResponsableInformation $responsableInformation  the related object to use as filter
	 * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
	 *
	 * @return    EleveQuery The current query, for fluid interface
	 */
	public function filterByResponsableInformation($responsableInformation, $comparison = null)
	{
		if ($responsableInformation instanceof ResponsableInformation) {
			return $this
				->addUsingAlias(ElevePeer::ELE_ID, $responsableInformation->getEleId(), $comparison);
		} elseif ($responsableInformation instanceof PropelCollection) {
			return $this
				->useResponsableInformationQuery()
				->filterByPrimaryKeys($responsableInformation->getPrimaryKeys())
				->endUse();
		} else {
			throw new PropelException('filterByResponsableInformation() only accepts arguments of type ResponsableInformation or PropelCollection');
		}
	}