/** * Filter the query by a related AidDetails object * * @param AidDetails|PropelCollection $aidDetails The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return AbsenceEleveSaisieQuery The current query, for fluid interface */ public function filterByAidDetails($aidDetails, $comparison = null) { if ($aidDetails instanceof AidDetails) { return $this ->addUsingAlias(AbsenceEleveSaisiePeer::ID_AID, $aidDetails->getId(), $comparison); } elseif ($aidDetails instanceof PropelCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(AbsenceEleveSaisiePeer::ID_AID, $aidDetails->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByAidDetails() only accepts arguments of type AidDetails or PropelCollection'); } }
/** * Declares an association between this object and a AidDetails object. * * @param AidDetails $v * @return EdtEmplacementCours The current object (for fluent API support) * @throws PropelException */ public function setAidDetails(AidDetails $v = null) { if ($v === null) { $this->setIdAid(NULL); } else { $this->setIdAid($v->getId()); } $this->aAidDetails = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the AidDetails object, it will not be re-added. if ($v !== null) { $v->addEdtEmplacementCours($this); } return $this; }
/** * Exclude object from result * * @param AidDetails $aidDetails Object to remove from the list of results * * @return AidDetailsQuery The current query, for fluid interface */ public function prune($aidDetails = null) { if ($aidDetails) { $this->addUsingAlias(AidDetailsPeer::ID, $aidDetails->getId(), Criteria::NOT_EQUAL); } return $this; }