Example #1
0
	/**
	 * Exclude object from result
	 *
	 * @param     ArchiveEcts $archiveEcts Object to remove from the list of results
	 *
	 * @return    ArchiveEctsQuery The current query, for fluid interface
	 */
	public function prune($archiveEcts = null)
	{
		if ($archiveEcts) {
			$this->addCond('pruneCond0', $this->getAliasedColName(ArchiveEctsPeer::ID), $archiveEcts->getId(), Criteria::NOT_EQUAL);
			$this->addCond('pruneCond1', $this->getAliasedColName(ArchiveEctsPeer::INE), $archiveEcts->getIne(), Criteria::NOT_EQUAL);
			$this->addCond('pruneCond2', $this->getAliasedColName(ArchiveEctsPeer::NUM_PERIODE), $archiveEcts->getNumPeriode(), Criteria::NOT_EQUAL);
			$this->addCond('pruneCond3', $this->getAliasedColName(ArchiveEctsPeer::SPECIAL), $archiveEcts->getSpecial(), Criteria::NOT_EQUAL);
			$this->combine(array('pruneCond0', 'pruneCond1', 'pruneCond2', 'pruneCond3'), Criteria::LOGICAL_OR);
		}

		return $this;
	}