Beispiel #1
0
	/**
	 * @param	CreditEctsGlobal $creditEctsGlobal The creditEctsGlobal object to add.
	 */
	protected function doAddCreditEctsGlobal($creditEctsGlobal)
	{
		$this->collCreditEctsGlobals[]= $creditEctsGlobal;
		$creditEctsGlobal->setEleve($this);
	}
Beispiel #2
0
	public function setCreditEctsGlobal($mention_ects) {
        $credit = $this->getCreditEctsGlobal();
        if ($credit == null) {
            $credit = new CreditEctsGlobal();
            $credit->setEleve($this);
        }
        $credit->setMention($mention_ects);
        return $credit->save();
	}
	/**
	 * Exclude object from result
	 *
	 * @param     CreditEctsGlobal $creditEctsGlobal Object to remove from the list of results
	 *
	 * @return    CreditEctsGlobalQuery The current query, for fluid interface
	 */
	public function prune($creditEctsGlobal = null)
	{
		if ($creditEctsGlobal) {
			$this->addCond('pruneCond0', $this->getAliasedColName(CreditEctsGlobalPeer::ID), $creditEctsGlobal->getId(), Criteria::NOT_EQUAL);
			$this->addCond('pruneCond1', $this->getAliasedColName(CreditEctsGlobalPeer::ID_ELEVE), $creditEctsGlobal->getIdEleve(), Criteria::NOT_EQUAL);
			$this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
		}

		return $this;
	}
Beispiel #4
0
	/**
	 * Filter the query by a related CreditEctsGlobal object
	 *
	 * @param     CreditEctsGlobal $creditEctsGlobal  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 filterByCreditEctsGlobal($creditEctsGlobal, $comparison = null)
	{
		if ($creditEctsGlobal instanceof CreditEctsGlobal) {
			return $this
				->addUsingAlias(ElevePeer::ID_ELEVE, $creditEctsGlobal->getIdEleve(), $comparison);
		} elseif ($creditEctsGlobal instanceof PropelCollection) {
			return $this
				->useCreditEctsGlobalQuery()
				->filterByPrimaryKeys($creditEctsGlobal->getPrimaryKeys())
				->endUse();
		} else {
			throw new PropelException('filterByCreditEctsGlobal() only accepts arguments of type CreditEctsGlobal or PropelCollection');
		}
	}